Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clashes with Plots.jl #32

Open
dpsanders opened this issue Feb 7, 2022 · 2 comments · Fixed by #35
Open

Clashes with Plots.jl #32

dpsanders opened this issue Feb 7, 2022 · 2 comments · Fixed by #35

Comments

@dpsanders
Copy link

dpsanders commented Feb 7, 2022

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: JuliaCon/proceedings-review#96

@dpsanders
Copy link
Author

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

@AnderGray
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants