Skip to content

Commit c1ccdf1

Browse files
committed
refact: minor nitpicks plot, site-conf.py
1 parent 961e956 commit c1ccdf1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _make_py_item_url(fn):
114114

115115
plotter = plot.get_active_plotter()
116116
plot.set_active_plotter(
117-
plot.get_active_plotter().with_styles(
117+
plotter.with_styles(
118118
kw_op_label={
119119
**plotter.default_theme.kw_op_label,
120120
"op_url": lambda plot_args: _make_py_item_url(plot_args.nx_item),

graphtik/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,9 @@ def plot(self, plot_args: PlotArgs):
10041004

10051005
plot_args = plot_args.with_defaults(
10061006
# Don't leave `solution` unassigned
1007-
solution=isinstance(plot_args.plottable, Solution)
1008-
and plot_args.plottable
1009-
or None,
1007+
solution=plot_args.plottable
1008+
if isinstance(plot_args.plottable, Solution)
1009+
else None,
10101010
theme=self.default_theme,
10111011
)
10121012

0 commit comments

Comments
 (0)