# Difference between revisions of "Plot comparison"

(20 intermediate revisions by 3 users not shown) | |||

Line 12: | Line 12: | ||

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

− | == | + | == Qt == |

− | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_09 axis_09,10,11,12, 13: No XAxisLocation zero (bug | + | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_09 axis_09,10,11,12, 13: No XAxisLocation zero] ({{bug |40588}} and {{bug |48562}}) since Matlab R2016a now supports "origin", this should be considered as an compatibility bug |

* [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#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_02.html#colorbar_19 colorbar_19: no colorbar] | ||

Line 21: | Line 21: | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#fill_01 fill_01: Hidden edge is visible] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#fill_01 fill_01: Hidden edge is visible] | ||

− | + | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#stem_06 stem_06: Vertical lines to the marker missing] | |

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#stem_07 stem_07: Vertical lines to the marker missing] | ||

− | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_05 annotation_05: gnuplot uses dotted lines instead of solid line] | + | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#shrinkfaces_02 shrinkfaces_02: wrong zoom] |

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#shrinkfaces_04 shrinkfaces_04: wrong zoom] | ||

+ | |||

+ | == gnuplot 4.6 == | ||

+ | |||

+ | 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. | ||

+ | |||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_01 annotation_01: Circle is missing] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_02 annotation_02: gnuplot boxes are wrong] | ||

+ | * <strike>[http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_05 annotation_05: gnuplot uses dotted lines instead of solid line]</strike> | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_06 annotation_06: annotation is shifted] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#annotation_06 annotation_06: annotation is shifted] | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#area_01 area_01: legend is cutted] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#area_01 area_01: legend is cutted] | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_02 axis_02: xy plot yaxis inverted] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_02 axis_02: xy plot yaxis inverted] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#autumn_01 autumn_01: y-axis inverted + no color] | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_01 colorbar_01: inverted colorbar] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_01 colorbar_01: inverted colorbar] | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_02 colorbar_02: horizontally swapped colorbar] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#colorbar_02 colorbar_02: horizontally swapped colorbar] | ||

Line 36: | Line 48: | ||

* [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#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] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_03.html#hot_01 hot_01: lower plot yaxis inverted] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#shrinkfaces_02 shrinkfaces_02: wrong vertexes] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_07.html#shrinkfaces_04 shrinkfaces_04: wrong vertexes] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_08.html#trimesh_01 trimesh_01: invisible lines. Qt plot is fine.] {{ bug |42561}} | ||

− | == | + | == Qt and gnuplot (independent of the used graphics_toolkit)== |

* [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] | ||

Line 45: | Line 60: | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.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_02.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] | * [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] | ||

+ | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_02.html#bar_01 bar_01: Bars heights difference between octave and matlab] | ||

== Matlab errors due to incompatibilities == | == Matlab errors due to incompatibilities == | ||

− | |||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_03 axis_03: Error using axis (line 204). Unknown command option ticx.] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_03 axis_03: Error using axis (line 204). Unknown command option ticx.] | ||

* [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_04 axis_04: Error using plot. Error in color/linetype argument.] | * [http://josoansi.de/octave_plot_compare/compare_plot_demos_01.html#axis_04 axis_04: Error using plot. Error in color/linetype argument.] | ||

− | |||

− | |||

− | |||

* [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.] | * [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.] | ||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

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

− | |||

* 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. |

## Latest revision as of 13:49, 27 August 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

- Page 1: annotation .. colorbar
- Page 2: colorbar .. ezplot
- Page 3: ezplot .. legend
- Page 4: legend .. meshz
- Page 5: meshz .. quiver
- Page 6: quiver .. slice
- Page 7: slice .. trisurf
- Page 8: trisurf .. zoom

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

## Contents

## QtEdit

- axis_09,10,11,12, 13: No XAxisLocation zero (#40588 and #48562) since Matlab R2016a now supports "origin", this should be considered as an compatibility bug
- copyobj_01: Second line, legend and marker missing
- colorbar_19: no colorbar
- hold_06: transparency?
- imshow_07: ???, gnuplot does the same as matlab...
- fill_01: Hidden edge is visible

## gnuplot 4.6Edit

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.

- annotation_01: Circle is missing
- annotation_02: gnuplot boxes are wrong
~~annotation_05: gnuplot uses dotted lines instead of solid line~~- annotation_06: annotation is shifted
- area_01: legend is cutted
- axis_02: xy plot yaxis inverted
- autumn_01: y-axis inverted + no color
- colorbar_01: inverted colorbar
- colorbar_02: horizontally swapped colorbar
- colorbar_07: upper right colorbar is inverted
- colorbar_08: right colorbar is inverted
- colorbar_12: right colorbar is inverted
- colorbar_14: upper colorbar is inverted
- colorbar_20,21,22,23: inverted colorbar
- fill_03: no gradient
- hot_01: lower plot yaxis inverted
- shrinkfaces_02: wrong vertexes
- shrinkfaces_04: wrong vertexes
- trimesh_01: invisible lines. Qt plot is fine. #42561

## Qt and gnuplot (independent of the used graphics_toolkit)Edit

- annotation_03: currently not all "headstyle" properties implemented which matlab has
- annotation_04: ??? What's correct here?
- area_01: Different colors, white vertical lines in FLTK/Qt
- cmpermute_01: No plot
- colorbar_23: xtick unreadable. It should check the text_extent and reduce xticks if the xlabels would overlap
- 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
- bar_01: Bars heights difference between octave and matlab

## Matlab errors due to incompatibilitiesEdit

- axis_03: Error using axis (line 204). Unknown command option ticx.
- axis_04: Error using plot. Error in color/linetype argument.
- brighten_01: Error using axis (line 204). Unknown command option ticy.
- colorbar_19: Error using matlab.graphics.illustration.ColorBar/set. There is no yscale property on the ColorBar class.

## won't fix or Octave only featureEdit

- 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.