Editing Debug plotting issues
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
== Basics == | == Basics == | ||
* '''Octave version:''' Execute 'ver' in Octave and copy | * '''Octave version:''' Execute 'ver' in Octave and copy the first 5 lines verbatim. If you are on Windows please mention which build (MinGW, Cygwin, MXE, Visual Studio see http://wiki.octave.org/Octave_for_Microsoft_Windows) and where you got it (download from http://sourceforge.net/, http://mxeoctave.osuv.de/ or have you build it yourself?). | ||
* '''Operating system:''' | * '''Operating system:''' | ||
Line 13: | Line 13: | ||
* If you get a warning on startup, for example "warning: function xyz.m shadows a built-in function" please copy it verbatim | * If you get a warning on startup, for example "warning: function xyz.m shadows a built-in function" please copy it verbatim | ||
* '''If you get an error message | * '''If you get an error message, please copy the message verbatim''' | ||
== I can't plot or print or the output doesn't look as expected == | == I can't plot or print or the output doesn't look as expected == | ||
Line 22: | Line 22: | ||
* Sometimes the figure on the screen visually differs from the file generated with "print". If this is the case please mention this and consider adding a screenshot of the figure window together with the generated print. | * Sometimes the figure on the screen visually differs from the file generated with "print". If this is the case please mention this and consider adding a screenshot of the figure window together with the generated print. | ||
* Which toolkit are you using? Common toolkits are 'fltk' | * Which toolkit are you using? Execute 'graphics_toolkit' in octave to query it. Common toolkits are 'fltk' or 'gnuplot'. Consider switching to another available toolkit (see available_graphics_toolkits) and try it there. You have to execute (for example switch to gnuplot) 'graphics_toolkit gnuplot' before any plotting command. | ||
* Which Ghostscript version | * Which Ghostscript version? Is it a 32 or 64bit build? Please add URL to download. If 64bit under Windows see http://wiki.octave.org/Octave_for_Microsoft_Windows#Printing_.28installing_Ghostscript.29 | ||
=== | === printing with gnuplot === | ||
Try | Try | ||
Line 32: | Line 32: | ||
and attach the generated octave-print-commands.log, debug message and testplot.eps. | and attach the generated octave-print-commands.log, debug message and testplot.eps. | ||
=== | === printing with fltk === | ||
A common problem is that printing with fltk only works if the figure is visible, see [http://savannah.gnu.org/bugs/?33180] | |||
== some Windows issues == | == some Windows issues == | ||
Line 91: | Line 40: | ||
* A user had problems printing with fltk in windows. After he updated the graphic drivers the problem was gone. http://octave.1599824.n4.nabble.com/Problem-with-Print-under-Octave-3-8-1-under-windows-tp4664755.html | * A user had problems printing with fltk in windows. After he updated the graphic drivers the problem was gone. http://octave.1599824.n4.nabble.com/Problem-with-Print-under-Octave-3-8-1-under-windows-tp4664755.html | ||
== Test script == | |||
== Test | |||
{{Code|FLTK printing test script|<syntaxhighlight lang="octave" style="font-size:13px"> | {{Code|FLTK printing test script|<syntaxhighlight lang="octave" style="font-size:13px"> | ||
Line 118: | Line 61: | ||
title ('Please describe what we should see') | title ('Please describe what we should see') | ||
print -depsc junk2.eps | print -depsc junk2.eps | ||
}} |