Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated documentation for hardcopy() method.

  • Loading branch information...
commit b8d64e6236a7444174b518d9166e2a7eb92424e0 1 parent e15388f
authored November 25, 2005

Showing 1 changed file with 13 additions and 11 deletions. Show diff stats Hide diff stats

  1. 24  gnuplot-py/_Gnuplot.py
24  gnuplot-py/_Gnuplot.py
@@ -477,15 +477,16 @@ def title(self, s=None, offset=None, font=None):
477 477
     def hardcopy(self, filename=None, terminal='postscript', **keyw):
478 478
         """Create a hardcopy of the current plot.
479 479
 
480  
-        Create a postscript hardcopy of the current plot to the
481  
-        default printer (if configured) or to the specified filename.
  480
+        Output the current plot to the default printer (if configured)
  481
+        or to the specified filename.
482 482
 
483  
-        Note that gnuplot remembers the postscript suboptions across
484  
-        terminal changes.  Therefore if you set, for example, color=1
485  
-        for one hardcopy then the next hardcopy will also be color
486  
-        unless you explicitly choose color=0.  Alternately you can
487  
-        force all of the options to their defaults by setting
488  
-        mode='default'.  I consider this to be a bug in gnuplot.
  483
+        Note that gnuplot remembers the printer suboptions across
  484
+        terminal changes (at least for postscript).  Therefore if you
  485
+        set, for example, color=1 for one hardcopy then the next
  486
+        hardcopy will also be color unless you explicitly choose
  487
+        color=0.  Alternately you can force all of the options to
  488
+        their defaults by setting mode='default'.  I consider this to
  489
+        be a bug in gnuplot.
489 490
 
490 491
         Keyword arguments:
491 492
 
@@ -495,7 +496,8 @@ def hardcopy(self, filename=None, terminal='postscript', **keyw):
495 496
 
496 497
           'terminal=<string>' -- the type of gnuplot 'terminal' to use
497 498
               for the output (e.g., 'postscript', 'png', 'latex',
498  
-              etc).  At the moment only 'postscript' is implemented.
  499
+              etc).  Look in termdefs.py to see what terminal types
  500
+              are defined, or check termdefs.terminal_opts.keys().
499 501
 
500 502
         The rest of the keyword arguments depend on the terminal type.
501 503
 
@@ -552,8 +554,8 @@ def hardcopy(self, filename=None, terminal='postscript', **keyw):
552 554
         # terminal' line (don't even specify the default value for the
553 555
         # option).  This is to avoid confusing older versions of
554 556
         # gnuplot that do not support all of these options.  The
555  
-        # exception is 'enhanced', which is just too useful to have to
556  
-        # specify each time!
  557
+        # exception is postscript's 'enhanced' option, which is just
  558
+        # too useful to have to specify each time!
557 559
 
558 560
         # Build up the 'set terminal' command here:
559 561
         setterm = ['set', 'terminal', terminal]

0 notes on commit b8d64e6

Please sign in to comment.
Something went wrong with that request. Please try again.