octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Should DEVICE list in print() help be dependent upon graphics toolkit gn


From: Daniel J Sebald
Subject: Should DEVICE list in print() help be dependent upon graphics toolkit gnuplot/fltk/qt?
Date: Thu, 19 Feb 2015 19:28:31 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

If one displays the "help print", he or she will find a list of devices that is outdated. In the case of gnuplot, a couple devices are missing from the list. In the case of fltk/qt many of those devices aren't valid. Should an accurate list be generated somehow? For example, in "help print" we could refer to graphics_toolkit and add an option to graphics_toolkit, e.g.,

graphics_toolkit (TLKTNAME, "devices");

          The available gnuplot output format DEVICE options for print()
          is one of:

         `ps'
         `ps2'
         `psc'
         `psc2'
               PostScript (level 1 and 2, mono and color).  The FLTK
               graphics toolkit generates PostScript level 3.0.

etc.

In the case of gnuplot, one could use the system() command to get a list of gnuplot terminals. But if it were just some ASCII text inside the graphics_toolkit() function that needs to be updated from time to time, that would work too.

Also, note that the demo/test examples in "graphics_toolkit.m" are probably outdated because they don't account for the "qt" toolkit. E.g., if old_toolkit ends up being "qt", new_toolkit won't be defined.

Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]