Skip to content

Commit 8069679

Browse files
committed
I always "unset multiplot" after sending that data
Apparently I was supposed to do this, but never did. Some features in gnuplot 6.0 work better when this is done properly
1 parent f622d5d commit 8069679

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

gnuplotlib.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,21 +2431,18 @@ def plot_process_footer():
24312431
# This is certain
24322432
is_multiplot = self.processOptions.get('multiplot')
24332433

2434-
# Some noninteractive terminals need to be told we're done
2435-
# plotting (unset multiplot, set output) to actually write the
2436-
# data to disk in full. svg needs this to write out some closing
2437-
# stanza, and png needs this to write anything, if we're
2438-
# multiplotting.
2439-
2440-
# If we're using an unknown interactive terminal, this will
2441-
# 'unset multiplot', and make multiplots break. Unknown
2442-
# interactive terminals aren't likely to happen
2443-
if is_multiplot and not is_interactive:
2434+
if is_multiplot:
24442435
self._safelyWriteToPipe('unset multiplot')
2436+
2437+
# Some noninteractive terminals need to be told we're done
2438+
# plotting (set output) to actually write the data to disk in
2439+
# full. For instance "svg" needs this to write out some closing
2440+
# stanza
2441+
24452442
# If we're using an unknown interactive terminal, this will 'set
24462443
# output', and make multiplots break. Unknown interactive
24472444
# terminals aren't likely to happen
2448-
if not (is_multiplot and is_interactive):
2445+
if not is_interactive:
24492446
self._safelyWriteToPipe('set output', 'output')
24502447

24512448
# If I KNOW that I'm using a non-interactive terminal, I don't

0 commit comments

Comments
 (0)