Plot comparison: Difference between revisions

From Octave
Jump to navigation Jump to search
(update page01-03)
Line 15: Line 15:


* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_09 axis_09,10,11,12, 13: No XAxisLocation zero (bug #40588)]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_09 axis_09,10,11,12, 13: No XAxisLocation zero (bug #40588)]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.html#copyobj_01 copyobj_01: Second line, legend and marker missing]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.html#colorbar_19 colorbar_19: no colorbar]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#hold_06 hold_06: transparency?]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#imshow_07 imshow_07: ???, gnuplot does the same as matlab...]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#fill_01 fill_01: Hidden edge is visible]


== gnuplot ==
== gnuplot ==
Line 28: Line 33:
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_12 colorbar_12: right colorbar is inverted]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_12 colorbar_12: right colorbar is inverted]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_14 colorbar_14: upper colorbar is inverted]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_14 colorbar_14: upper colorbar is inverted]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.html#colorbar_20 colorbar_20,21,22,23: inverted colorbar]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#fill_03 fill_03: no gradient]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#hot_01 hot_01: lower plot yaxis inverted]


== FLTK, Qt, gnuplot ==
== FLTK, Qt, gnuplot ==


* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_03 annotation_03: currently not all "headstyle" properties implemented which matlab has]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_03 annotation_03: currently not all "headstyle" properties implemented which matlab has]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_04 annotation_04: ???]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_04 annotation_04: ??? What's correct here?]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#area_01 area_01: Different colors, white vertical lines in FLTK/Qt]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#area_01 area_01: Different colors, white vertical lines in FLTK/Qt]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#cmpermute_01 cmpermute_01: No plot]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#cmpermute_01 cmpermute_01: No plot]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_23 colorbar_23: xtick unreadable. It should check the text_extent and reduce xticks if the xlabels would overlap]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_01 colorbar_01: This is just a matter of taste but I (Andy1978) would prefer a  smaller gap (only 40% of the current implementation?) between colorbar and the plot like matlab does]


== Matlab errors due to incompatibilities ==
== Matlab errors due to incompatibilities ==
Line 45: Line 55:
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#bone_01 bone_01: Error using rgbplot. Too many input arguments.]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#bone_01 bone_01: Error using rgbplot. Too many input arguments.]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#brighten_01 brighten_01: Error using axis (line 204). Unknown command option ticy.]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#brighten_01 brighten_01: Error using axis (line 204). Unknown command option ticy.]
* [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.html#colorbar_19 colorbar_19: Error using matlab.graphics.illustration.ColorBar/set. There is no yscale property on the ColorBar class.]




= old results with broken links, should be checked and merged =
= old results, should be rechecked and merged =


 
* shrinkfaces_04: shows "inverted?/outer faces", completly different from matlab
* [http://tech-chat.de/compare_plot_demos/gnuplot/colorbar_23.png gnuplot] + [http://tech-chat.de/compare_plot_demos/fltk/colorbar_23.png fltk] colorbar_23: xtick unreadable. It should check the text_extent and reduce xticks if the xlabels would overlap.
* text_03: can't print multi-line text objects [http://savannah.gnu.org/bugs/?31468 bug#31468]
 
* colorbar_20: Latex label 10^{2}, 10^{1.5} not in print output. See bugs #42988, #42320, #42340 which are mostly duplicates
* [http://tech-chat.de/compare_plot_demos/gnuplot/colorbar_01.png gnuplot] + [http://tech-chat.de/compare_plot_demos/fltk/colorbar_01.png fltk] colorbar* : This is just a matter of taste but I (Andy1978) would prefer a  smaller gap (only 40% of the current implementation?) between colorbar and the plot like [http://tech-chat.de/compare_plot_demos/matlab/colorbar_01.png matlab] does.
 
* [http://tech-chat.de/compare_plot_demos/fltk/colorbar_19.png fltk] colorbar_19.png : unusable colorbar with FLTK ([http://savannah.gnu.org/bugs/?42311 bug#42311]) when log scale is set, fine with [http://tech-chat.de/compare_plot_demos/gnuplot/colorbar_19.png gnuplot]
 
* gnuplot + ftlk: fill_01, fill_02: hidden edges keep visible in ML, not with fltk or gnuplot. This seems to be a ML bug when printing to PNG or JPEG and works (same output like gnuplot+fltk) when printing to ps. In FLTK the on-screen images shows the hidden edge and becomes invisible when printing.
 
* [http://tech-chat.de/compare_plot_demos/gnuplot/hold_07.png gnuplot] + [http://tech-chat.de/compare_plot_demos/fltk/hold_07.png fltk]: hold_07: red rectangle hides the '^' plot markers. In ML they disappear on-screen as soon as xlim is changed or zoomed. Is this a ML bug? What is the prefered behaviour?
 
* [http://tech-chat.de/compare_plot_demos/gnuplot/shrinkfaces_04.png gnuplot] + [http://tech-chat.de/compare_plot_demos/fltk/shrinkfaces_04.png fltk] shrinkfaces_04: shows "inverted?/outer faces", completly different from [http://tech-chat.de/compare_plot_demos/matlab/shrinkfaces_04.png matlab]
 
* [http://tech-chat.de/compare_plot_demos/fltk/text_03.png fltk] text_03: can't print multi-line text objects [http://savannah.gnu.org/bugs/?31468 bug#31468]
 
* [http://tech-chat.de/compare_plot_demos/fltk/colorbar_20.png fltk] colorbar_20: Latex label 10^{2}, 10^{1.5} not in print output. See bugs #42988, #42320, #42340 which are mostly duplicates


== gnuplot only differences ==
== gnuplot only differences ==
Line 73: Line 71:
Nevertheless here are some visual '''gnuplot ONLY''' problems which need some attention:
Nevertheless here are some visual '''gnuplot ONLY''' problems which need some attention:


* [http://tech-chat.de/compare_plot_demos/gnuplot/fill_03.png gnuplot] fill_03: unusable
* fill_03: unusable
 
* ezsurf_02: distorted despite "axis equal"
* [http://tech-chat.de/compare_plot_demos/gnuplot/ezsurf_02.png gnuplot] ezsurf_02: distorted despite "axis equal"
* isosurface_01: wrong scale, edges missing
 
* trimesh_01: invisible lines [http://savannah.gnu.org/bugs/?42561 bug#42561]. FLTK plot is fine.
* [http://tech-chat.de/compare_plot_demos/gnuplot/isosurface_01.png gnuplot] isosurface_01: wrong scale, edges missing
* zlim_03: Warning/Error "line 0: *All* edges undefined or out of range, thus no plot." and an empty plot (as announced). FLTK plot is fine.
 
* [http://tech-chat.de/compare_plot_demos/gnuplot/trimesh_01.png gnuplot] trimesh_01: invisible lines [http://savannah.gnu.org/bugs/?42561 bug#42561]. [http://tech-chat.de/compare_plot_demos/fltk/trimesh_01.png FLTK] plot is fine.
 
* [http://tech-chat.de/compare_plot_demos/gnuplot/zlim_03.png gnuplot] zlim_03: Warning/Error "line 0: *All* edges undefined or out of range, thus no plot." and an empty plot (as announced). [http://tech-chat.de/compare_plot_demos/fltk/zlim_03.png FLTK] plot is fine.
 
== work in progress ==
 
* plotyy_03: chunky dashed line for the '--' linestyle: [http://octave.1599824.n4.nabble.com/Changing-mark-space-for-dashed-lines-in-plots-td4665166.html Thread on ML]
 
== fixed ==
 
* colorbar ticks: http://hg.savannah.gnu.org/hgweb/octave/rev/04a00ba54557
 
* gnuplot + fltk compass_01: no proper scaling/zoom: A changeset from Stefan Mahr fixing a different part of polar() also solves the auto-scaling issue with compass().  See http://hg.savannah.gnu.org/hgweb/octave/rev/cff49c82f722.
 
* The right axis of the [http://tech-chat.de/compare_plot_demos/gnuplot/pareto_01.png Pareto plot] was being drawn in a different color from the left axis. http://hg.savannah.gnu.org/hgweb/octave/rev/f1e21a495e20
 
* [http://tech-chat.de/compare_plot_demos/matlab/patch_04.png gnuplot] + [http://tech-chat.de/compare_plot_demos/fltk/patch_04.png fltk] patch_04: the demo incorrectly assumes the patch "facecolor" is "flat" as octave currently sets this by default (whereas in matlab "facecolor" is "none" by default). This should be fixed with [http://savannah.gnu.org/bugs/index.php?42159 bug#42159] (this probably is also the cause for black faces in shrinkfaces*)


== won't fix or Octave only feature ==
== won't fix or Octave only feature ==


* fltk/ML axis_09, axis_10, axis_11, axis_12, axis_13:  No, [x,y]axislocation' 'zero' (http://savannah.gnu.org/bugs/?40588). This is an Octave (and gnuplot) only feature. We can either blacklist, or visually skip over the comparison since it is blank for Matlab. Perhaps should be removed from demos or blacklist axis_09 in dump.m script
* fltk/ML axis_09, axis_10, axis_11, axis_12, axis_13:  No, [x,y]axislocation' 'zero' (http://savannah.gnu.org/bugs/?40588). This is an Octave (and gnuplot) only feature. We can either blacklist, or visually skip over the comparison since it is blank for Matlab. Perhaps should be removed from demos or blacklist axis_09 in dump.m script
* matlab comet3_01, comet.png: Only the beginning of the animation is printed. Matlab implements comet in a completely different way which means printing isn't really possible for them.
* matlab comet3_01, comet.png: Only the beginning of the animation is printed. Matlab implements comet in a completely different way which means printing isn't really possible for them.
* matlab polar_03, polar_05: Modifying ticks for rho (rticks) and theta (tticks) is an Octave addition.
* matlab polar_03, polar_05: Modifying ticks for rho (rticks) and theta (tticks) is an Octave addition.
* matlab polar_04: Modifying color and text properties in polar plot is an Octave addition.
* matlab polar_04: Modifying color and text properties in polar plot is an Octave addition.
* Multiple Matlab plots with "Error in color/linetype argument". This is because adding legend keys with ";" in plot like "plot(1:10, "; a ramp;)" is an Octave only addition.
* Multiple Matlab plots with "Error in color/linetype argument". This is because adding legend keys with ";" in plot like "plot(1:10, "; a ramp;)" is an Octave only addition.

Revision as of 15:03, 16 July 2016

Visual comparison of plot files from http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html until compare_plot_demos_0_08.html

You can find the scripts which are used to create these plots in scripts/testfun/private.

FLTK, Qt

gnuplot

FLTK, Qt, gnuplot

Matlab errors due to incompatibilities


old results, should be rechecked and merged

  • shrinkfaces_04: shows "inverted?/outer faces", completly different from matlab
  • text_03: can't print multi-line text objects bug#31468
  • colorbar_20: Latex label 10^{2}, 10^{1.5} not in print output. See bugs #42988, #42320, #42340 which are mostly duplicates

gnuplot only differences

There are a lot of gnuplot differences and it might be nice to fix those, but someone would have to take an interest. Octave is moving towards OpenGL for all plotting so most developers focuses on bug fixes for that toolkit.

Nevertheless here are some visual gnuplot ONLY problems which need some attention:

  • fill_03: unusable
  • ezsurf_02: distorted despite "axis equal"
  • isosurface_01: wrong scale, edges missing
  • trimesh_01: invisible lines bug#42561. FLTK plot is fine.
  • zlim_03: Warning/Error "line 0: *All* edges undefined or out of range, thus no plot." and an empty plot (as announced). FLTK plot is fine.

won't fix or Octave only feature

  • fltk/ML axis_09, axis_10, axis_11, axis_12, axis_13: No, [x,y]axislocation' 'zero' (http://savannah.gnu.org/bugs/?40588). This is an Octave (and gnuplot) only feature. We can either blacklist, or visually skip over the comparison since it is blank for Matlab. Perhaps should be removed from demos or blacklist axis_09 in dump.m script
  • matlab comet3_01, comet.png: Only the beginning of the animation is printed. Matlab implements comet in a completely different way which means printing isn't really possible for them.
  • matlab polar_03, polar_05: Modifying ticks for rho (rticks) and theta (tticks) is an Octave addition.
  • matlab polar_04: Modifying color and text properties in polar plot is an Octave addition.
  • Multiple Matlab plots with "Error in color/linetype argument". This is because adding legend keys with ";" in plot like "plot(1:10, "; a ramp;)" is an Octave only addition.