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 d2dded1 commit 518f23fCopy full SHA for 518f23f
mathicsscript/format.py
@@ -353,11 +353,11 @@ def format_graph(G):
353
354
vertex_labels = G.vertex_labels if hasattr(G, "vertex_labels") else False
355
if vertex_labels:
356
- draw_options["with_labels"] = vertex_labels.to_python() or False
+ draw_options["with_labels"] = bool(vertex_labels)
357
358
- if hasattr(G, "title") and G.title.get_string_value():
+ if hasattr(G, "title") and G.title:
359
fig, ax = plt.subplots() # Create a figure and an axes
360
- ax.set_title(G.title.get_string_value())
+ ax.set_title(G.title)
361
362
if graph_layout:
363
if not isinstance(graph_layout, str):
0 commit comments