We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89edb9f commit 04a0ff8Copy full SHA for 04a0ff8
mathicsscript/format.py
@@ -247,8 +247,11 @@ def format_graph(G, options):
247
# FIXME handle graphviz as well
248
import matplotlib.pyplot as plt
249
250
- plot_theme = options.get("PlotTheme", None)
251
- vertex_labeling = options.get("VertexLabeling", None).to_python() or False
+ plot_theme = options.get("PlotTheme", None) if options else None
+ vertex_labeling = options.get("VertexLabeling", None) if options else None
252
+ if vertex_labeling:
253
+ vertex_labeling = vertex_labeling.to_python() or False
254
+
255
if plot_theme:
256
if not isinstance(plot_theme, str):
257
plot_theme = plot_theme.get_string_value()
0 commit comments