You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed it would be great if it would be possible to
adjust the scale of the plot (good to have for integration in a Jupyter Widget GUI, which could be launched via voila)
Add a plot title (when multiple time series plots are opened)
or at leas have axis labels
I figured that one has to modify by some means the template in the TimeSeries class. So a template, which allows drawing a rescaled plot with a title would look as follows.
I tried to implement it by adding an __init__ to the Timeseries class, where you could for example define the width and the height.
When you want to show the widget with
ts=TimeSeries() # this line does not throw an errorts# this one does
one gets the following error:
---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
FileC:\Miniconda3\envs\iok\lib\site-packages\IPython\core\formatters.py:973, inMimeBundleFormatter.__call__(self, obj, include, exclude)
970method=get_real_method(obj, self.print_method)
972ifmethodisnotNone:
-->973returnmethod(include=include, exclude=exclude)
974returnNone975else:
FileC:\Miniconda3\envs\iok\lib\site-packages\ipywidgets\widgets\widget.py:811, inWidget._repr_mimebundle_(self, **kwargs)
799data= {
800'text/plain': plaintext,
801 }
802ifself._view_nameisnotNone:
803# The 'application/vnd.jupyter.widget-view+json' mimetype has not been registered yet.804# See the registration process and naming convention at805# http://tools.ietf.org/html/rfc6838806# and the currently registered mimetypes at807# http://www.iana.org/assignments/media-types/media-types.xhtml.808data['application/vnd.jupyter.widget-view+json'] = {
809'version_major': 2,
810'version_minor': 0,
-->811'model_id': self._model_id812 }
813returndataAttributeError: 'TimeSeries'objecthasnoattribute'_model_id'
I figured that one has to modify by some means the template in the
TimeSeries
class. So a template, which allows drawing a rescaled plot with a title would look as follows.Originally posted by @DunklesArchipel in #6 (comment)
The text was updated successfully, but these errors were encountered: