Skip to content

save svg #32

@mattiik

Description

@mattiik

Hi,

I would like to save a graph from holoviews (bokeh backend) to svg.
When using the example from here https://holoext.readthedocs.io/en/latest/examples/save_to_png_svg.html
I get the following error message:

`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
----> 1 Mod().apply(curve2 + curve3, save='save_to_png_svg', fmt='svg')

~\AppData\Local\Continuum\anaconda3\lib\site-packages\holoext\xbokeh.py in apply(self, obj, save, fmt)
687 else:
688 bokeh_obj = renderer.get_plot(obj).state
--> 689 self._save_to_svg(bokeh_obj, save)
690
691 return obj

~\AppData\Local\Continuum\anaconda3\lib\site-packages\holoext\xbokeh.py in _save_to_svg(self, bokeh_obj, save)
562 figures = self._get_figures(bokeh_obj)
563 for i, figure in enumerate(figures):
--> 564 figure.output_backend = SVG_STR
565
566 if len(figures) != 1:

~\AppData\Local\Continuum\anaconda3\lib\site-packages\bokeh\core\has_props.py in setattr(self, name, value)
286
287 raise AttributeError("unexpected attribute '%s' to %s, %s attributes are %s" %
--> 288 (name, self.class.name, text, nice_join(matches)))
289
290 def str(self):

AttributeError: unexpected attribute 'output_backend' to GridBox, possible attributes are align, aspect_ratio, background, children, cols, css_classes, disabled, height, height_policy, js_event_callbacks, js_property_callbacks, margin, max_height, max_width, min_height, min_width, name, rows, sizing_mode, spacing, subscribed_events, tags, visible, width or width_policy`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions