pycsamt.map.export#

Figure export helpers for pycsamt.map.

Functions

export_figure(fig, options)

Export fig according to options.

figure_to_dict(fig)

Return a serializable figure dictionary.

save_png(fig, path, **kwargs)

Save a Matplotlib-like or Plotly-like figure as PNG.

write_dict(fig, path)

Write a figure dictionary as JSON text.

write_html(fig, path, **kwargs)

Write a Plotly-like figure to HTML.

write_image(fig, path, **kwargs)

Write a Plotly-like image.

write_json(fig, path)

Write a Plotly-like figure specification as JSON.

pycsamt.map.export.write_html(fig, path, **kwargs)[source]#

Write a Plotly-like figure to HTML.

Parameters:
Return type:

Path

pycsamt.map.export.write_image(fig, path, **kwargs)[source]#

Write a Plotly-like image.

Parameters:
Return type:

Path

pycsamt.map.export.save_png(fig, path, **kwargs)[source]#

Save a Matplotlib-like or Plotly-like figure as PNG.

Parameters:
Return type:

Path

pycsamt.map.export.export_figure(fig, options)[source]#

Export fig according to options.

Parameters:
Return type:

Path

pycsamt.map.export.write_json(fig, path)[source]#

Write a Plotly-like figure specification as JSON.

Parameters:
Return type:

Path

pycsamt.map.export.write_dict(fig, path)[source]#

Write a figure dictionary as JSON text.

Parameters:
Return type:

Path

pycsamt.map.export.figure_to_dict(fig)[source]#

Return a serializable figure dictionary.

Parameters:

fig (Any)

Return type:

dict[str, Any]