Skip to content

Commit

Permalink
record button should be working now - 2D layer was not able to record…
Browse files Browse the repository at this point in the history
… previously #146
  • Loading branch information
LemurPwned committed Jun 26, 2018
1 parent e5c5bd5 commit 642bccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Widgets/plot_widgets/CanvasLayer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from matplotlib import cm
import numpy as np

from pattern_types.Patterns import AbstractGLContextDecorators
from Widgets.plot_widgets.AbstractCanvas import AbstractCanvas
from multiprocessing_parse import asynchronous_pool_order
from cython_modules.color_policy import multi_iteration_normalize, \
Expand Down Expand Up @@ -52,6 +52,7 @@ def createPlotCanvas(self):
self.plot_axis.set_autoscale_on(False)
self.plot_axis.set_title('{}/{}'.format(self.i, self.iterations))

@AbstractGLContextDecorators.recording_decorator
def replot(self):
self.plot_axis.hpl.set_array(self.colors[self.i])
self.plot_axis.set_title('{}/{}'.format(self.i, self.iterations))
Expand Down Expand Up @@ -92,3 +93,4 @@ def set_i(self, value, trigger=False, record=False):
self.i %= self.iterations
self.replot()
self.plot_axis.get_figure().canvas.draw()
self.record = record

0 comments on commit 642bccf

Please sign in to comment.