From d9bdf2e1cac0b7344cb718c487223f23506583c1 Mon Sep 17 00:00:00 2001 From: Ran Fan Date: Wed, 29 Aug 2018 17:02:10 +0100 Subject: [PATCH 1/2] update license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index e64335a..32cace1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 arraystream +Copyright (c) 2017 ArrayStream Technologies Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 7e21b715ee2336957cec8e9356010071b325ab8e Mon Sep 17 00:00:00 2001 From: Ran Fan Date: Tue, 11 Sep 2018 17:20:00 +0100 Subject: [PATCH 2/2] no need to deep copy as plotly api does it for us --- weplot/figure.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weplot/figure.py b/weplot/figure.py index aca95f7..8cabda2 100644 --- a/weplot/figure.py +++ b/weplot/figure.py @@ -1,4 +1,3 @@ -import copy import itertools import plotly @@ -118,7 +117,7 @@ def build_subplot(self, print_grid=True, **kwargs): for idx, builder in enumerate(self.builders): spec = self.canvas.specs[idx] - fig.append_trace(copy.deepcopy(builder.data), spec.r, spec.c) + fig.append_trace(builder.data, spec.r, spec.c) holder = FigureHolder(go.Figure(data=fig.data, layout=fig.layout)) holder.update_layout(**self.layout) @@ -129,7 +128,7 @@ def subplot(self, row=None, col=None, print_grid=True, **kwargs): if col is not None and row is not None: new_builder = FigureBuilder() new_builder.builders = self.builders - new_builder.layout = copy.deepcopy(self.layout) + new_builder.layout = self.layout new_builder.canvas = canvas_from_specs(itertools.product(range(1, row + 1), range(1, col + 1))) new_builder.build_subplot(print_grid=print_grid, **kwargs).plot() else: