Plots.jl: artifact on ribbon plots on GR

Created on 2 Oct 2017  路  7Comments  路  Source: JuliaPlots/Plots.jl

julia> using Plots
julia> plot(sin, ribbon = 0.1)

gr_ribbon

gives tiny white lines in the "ribbon" part. At some point it also happened that the plot line was "broken" but that was harder to reproduce. It seems that it's plotting every little chunk individually and they are not properly connected.

Here is a zoomed version:

screen shot 2017-10-02 at 12 52 03

I'm on Plots master and see this behavior both on GR release and master.

All 7 comments

That's probably related to the automatic choices of the x values:

x = linspace(-5, 5, 10000)
plot(x, sin.(x), ribbon = 0.1)

looks better.

i'm pretty sure that this is a rendering artifact... Choosing different defaults just seems to hide it ;)

I agree with @SimonDanisch : we can't expect the user to hide artefacts by choosing 10000 points on the x axis... Maybe it's better to ping @jheinen on this one, as I really don't know much about the details of the GR rendering system.

ok

I have to check how ribbon plots are implemented (emulated) in Plots' GR backend ...

@jheinen, I think, they are just fillranges, set for all backends in https://github.com/JuliaPlots/Plots.jl/blob/master/src/utils.jl#L483-L500

@piever solved the issue! 馃帀
It was caused by myself in #1110 (cf. #1139) and will be fixed by #1142.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jebej picture jebej  路  4Comments

ereday picture ereday  路  3Comments

mkborregaard picture mkborregaard  路  3Comments

cortner picture cortner  路  4Comments

pkofod picture pkofod  路  3Comments