ProbabilityBoundsAnalysis.jl icon indicating copy to clipboard operation
ProbabilityBoundsAnalysis.jl copied to clipboard

Clashes with `Plots.jl`

Open dpsanders opened this issue 3 years ago • 2 comments

My default graphing library is Plots.jl, but PBA clashes with it:

julia> a = uniform(0, 1)
Pbox: 	  ~ uniform ( range=[0.0, 1.0], mean=0.5, var=0.083333)

julia> using Plots

julia> plot(a)
WARNING: both Plots and ProbabilityBoundsAnalysis export "plot"; uses of it in module Main must be qualified

I'm not sure what is actionable here, but it should at least be mentioned in the README and docs.

Part of the review for the JuliaCon proceedings: https://github.com/JuliaCon/proceedings-review/issues/96

dpsanders avatar Feb 07 '22 02:02 dpsanders

It would be great to make plot recipes for Plots.jl. You could maybe detect which plotting package is available and define code accordingly.

(But all that is necessary for the review is to add a note about this issue.)

dpsanders avatar Feb 07 '22 02:02 dpsanders

plot recipes is the ideal way to do this. However when I tried the plotting with Plots.jl, I couldn't quite get it to look the way I liked, so I'd prefer to stick with PyPlot for now. What I have done is remove PyPlot as a dependence, and used Requires.jl. So that if you wish to plot, you need to using PyPlot

I still need to make note of this in the Documentation.

AnderGray avatar Mar 04 '22 15:03 AnderGray