Debug plotting issues: Difference between revisions
Jump to navigation
Jump to search
create test script stub
mNo edit summary |
(create test script stub) |
||
Line 39: | Line 39: | ||
* 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 == | |||
{{Code|FLTK printing test script|<syntaxhighlight lang="octave" style="font-size:13px"> | |||
close all | |||
graphics_toolkit fltk | |||
h = plot ([0, 0.5, 1], [0, 0.5, 1], '-sb'); | |||
set (h, 'markerfacecolor', 'b', 'markersize', 20, 'linewidth', 4) | |||
hold all | |||
h = plot ([1, 0.5, 0], [0, 0.5, 1], '-or'); | |||
set (h, 'markerfacecolor', 'r', 'markersize', 20, 'linewidth', 4) | |||
set (gca (), 'color', 'c') | |||
title ('Cyan background, black axes. A red line with circle markers above a blue line with square markers.') | |||
print -depsc junk1.eps | |||
# Bug 35648, is this a representive test for this? What is the desired output? | |||
close all | |||
hp = patch([1 1 2 2],[1 2 2 1], [1 0.8 1]); | |||
grid on; | |||
set(gca,'layer','bottom'); | |||
title ('Please describe what we should see') | |||
print -depsc junk2.eps | |||
}} |