Plots.jl: Make tests pass

Created on 6 Feb 2017  Â·  13Comments  Â·  Source: JuliaPlots/Plots.jl

The VRT tests fail because of the PyPlot.jl upgrade to Matplotlib 2.0.

All 13 comments

Ok, so I've run the VRT tests locally today and I have found basically two issues for pyplot/matplotlib2:

  1. The colorbar labels are cropped, as can be seen in the following pictures:
    4_colors
    10_histogram2d
    22_contours
    24_3d
    28_heatmap
    Should I create a seperate issue for this?

  2. (probably minor) The display of line styles (dot, dashdot, ...) has changed:
    12_line_styles
    I don't know, if this is a big issue, but in the legend the dashed and dashdotted lines cannot really be identified as such.

cc: @mkborregaard

I've also run into some problems with GR:

  1. Images are displayed transposed. This is probably already known via https://github.com/JuliaPlots/Plots.jl/issues/432
    6_images

  2. The custom marker shapes are weirdly stretched:
    21_custom_markers

  3. Colorbars are not shown:
    24_3d
    28_heatmap

In general you should accept the current image unless there's been a
regression. So if it used to be an issue and it's still an issue, no
problem.

On Thu, Mar 16, 2017 at 6:32 PM Daniel Schwabeneder <
[email protected]> wrote:

I've also run into some problems with GR:

1.

Images are displayed transposed. This is probably already known via
#432 https://github.com/JuliaPlots/Plots.jl/issues/432
[image: 6_images]
https://cloud.githubusercontent.com/assets/16589944/24020427/68354150-0a9c-11e7-9f27-57f69bc584e0.png
2.

The custom marker shapes are weirdly stretched:
[image: 21_custom_markers]
https://cloud.githubusercontent.com/assets/16589944/24020824/259b7510-0a9e-11e7-80e7-1e6a4d803372.png
3.

Colorbars are not shown:
[image: 24_3d]
https://cloud.githubusercontent.com/assets/16589944/24020916/96447dd4-0a9e-11e7-873b-3c8084d755bd.png
[image: 28_heatmap]
https://cloud.githubusercontent.com/assets/16589944/24020928/a449b57a-0a9e-11e7-98ae-d5b4ff47020d.png

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/JuliaPlots/Plots.jl/issues/670#issuecomment-287211233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA492hn3UkLkPF6k5_wwKu3R8LsaouwOks5rmbh9gaJpZM4L4QN9
.

As far as I can see there is a regression on all these examples?
Here is my suggestion (needs to be confirmed by @tbreloff as this is just my naive take on it):

  1. Except for the first image, save the current (new/left) image for pyplot regardless of clipping of the color bar, but open an issue for color bar clipping.
  2. Don't save the new version of the very first image as the legend position is off, and this seems necessary to fix? And open an issue.
  3. Just save the new version of the one with the linestyles.
  4. I have reopened the image rotation issue on GR. Don't save the new image.
  5. Don't save the new version with the custom marker, open an issue for that.
  6. Same for GR colorbars.

Oh and nice work!

OK, of course I will wait for @tbreloff 's advice/confirmation.
In my opinion your suggestions sound very reasonable!
In the meantime I have already found an issue related to the color bar clipping (https://github.com/JuliaPlots/Plots.jl/issues/603). However, I guess this is more general and unrelated to matplotlib2, so I suppose I should still open a new issue?

Not sure, I have a feeling it's the same issue, really.

@tbreloff should @daschw go ahead with the actions I suggested? Or - is it important that all tests pass for the 0.6 transition?

Not sure if this will affect future actions, but I recently submitted PR https://github.com/JuliaPlots/Plots.jl/pull/740.

If it gets merged, all outputs will be shifted a bit:

  1. Definition/calculation of "pixel" was altered/corrected.
  2. "point" is now the base unit in Plots.jl (instead of "pixel").

These changes were necessary to control dpi in a meaningful/intuitive fashion.

If the Plots.jl group (@tbreloff) decides to merge:

Backend maintainers will probably want to re-tweak their outputs to match these re-definitions.

Of course, these changes will affect the pyplot() and gr() outputs as well.

The GR color bar issue is fixed :-) https://github.com/JuliaPlots/Plots.jl/pull/754

@mkborregaard Do you think that the legend position in the first plot is really an issue?
Maybe it is related to the changes described here
On the other hand, here it looks like Plots always chose "best" as default legend position, so I cannot really explain the changed location

It's so weird, though

But not a big problem, agreed. You should probably just accept the image.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Cody-G picture Cody-G  Â·  3Comments

asinghvi17 picture asinghvi17  Â·  3Comments

ereday picture ereday  Â·  3Comments

tbenst picture tbenst  Â·  3Comments

daschw picture daschw  Â·  3Comments