bugGNU Octave - Bugs: bug #53381, 3D surface plots generated with...

 
 

bug #53381: 3D surface plots generated with gnuplot are very small in comparison to FLTK

Submitter:  None
Submitted:  Mon 19 Mar 2018 10:55:31 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  None Assigned to:  None
Originator Name:  Octave user Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.2.2
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Apr 2018 06:54:53 PM UTC, comment #3: 

My problem is, that off-screen printing with fltk is not possible on Windows. It works only with gnuplot, but even if there is only one subplot per figure, it is still too small.

For example if you run the code below, you can see that the plot box becomes very small:


figure("visible", "off");
graphics_toolkit (gcf,"gnuplot")
[x,y,z]=sombrero();
surf(10 * x, y, z);
daspect([1,1,1]);
view(0,90);
print -djpg sombrero_gnuplot.jpg
graphics_toolkit (gcf,"fltk")
print -djpg sombrero_fltk.jpg



Anonymous
Wed 28 Mar 2018 08:50:53 PM UTC, comment #2: 

OK, your report is not the same issue as Bug #53504.  I think what you are concerned with is a characteristic of gnuplot that it's rotation in 3D space does not change with view.  It sort of picks the scaling for what the maximum x/y width are for any projection from 3D to 2D then maintains that scaling as the rotation changes.  OpenGL may be a bit different in its approach.  Let me think if there is a way to address this in the Octave plotting code.

Generally, neither of the two results you show are perfect.  The FLTK result seems rather large and overlaps the x-label, y-label and title.  If possible, you might want to project your data/view algorithmically then use conventional 2D plot.  That would avoid the whole 3D rotation view.  Or, another approach might be to generate the views individually with tight borders rather than as subplots and have a secondary word-processing package do the layout.

Dan Sebald <sebald>
Wed 28 Mar 2018 07:42:47 PM UTC, comment #1: 

Thanks for the bug report, as it is very important a feature like ensuring all axes have the same scale works as suggested.  I've made some comments in this bug report:

https://savannah.gnu.org/bugs/index.php?53504

which looks to be a possible duplicate but with a simpler command.

Could you please look at that report and judge whether the assessment is correct, i.e., that this may be more general than "Plotting with gnuplot".  I'm wondering if the viewing angles in your example cause one to overlook that "graphics_toolkit qt" also has a problem.

Dan Sebald <sebald>
Mon 19 Mar 2018 10:55:31 AM UTC, original submission:  

If you run the example in the attached file you get two plots:


clear all;
close all;

h = hgload("print_test.ofig");

graphics_toolkit(h, "fltk");
print("-djpg", "-color", "-landscape", "-tight", "-S4095,2048", "print_test_fltk.jpg");
graphics_toolkit(h, "gnuplot");
print("-djpg", "-color", "-landscape", "-tight", "-S4095,2048", "print_test_gnuplot.jpg");

print_test_fltk.jpg
print_test_gnuplot.jpg


print_test_fltk.jpg looks correct but print_test_gnuplot.jpg is so small that it is almost useless. Is there any way to increase the size of the plotbox in gnuplot?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #43788:  sombrero_gnuplot.jpg added by None (24KiB - image/jpeg)
file #43789:  sombrero_fltk.jpg added by None (43KiB - image/jpeg)
file #43594:  print_test.tar.bz2 added by None (249KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sebald (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-03 None Attached File- Added sombrero_gnuplot.jpg, #43788
        Attached File- Added sombrero_fltk.jpg, #43789
    2018-03-19 None Attached File- Added print_test.tar.bz2, #43594

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code