JuliaPlots / Plots.jl

Powerful convenience for Julia visualizations and data analysis
https://docs.juliaplots.org
Other
1.84k stars 355 forks source link

Add :volume seriestype support for PlotlyJS backend #1016

Closed juliohm closed 6 years ago

juliohm commented 7 years ago

I tried with GR, PyPlot and PlotlyJS, all failed... Also tried :contour3d but it seems to be pointing to :volume?

mkborregaard commented 7 years ago

Only GLVIsualize, I think. At least PlotlyJS can do volumes natively, though.

juliohm commented 7 years ago

Thank you @mkborregaard, GLVisualize recognized it, however the plot is not looking very nice.

PlotlyJS also supports it? I will rename the issue accordingly...

SimonDanisch commented 7 years ago

however the plot is not looking very nice.

What's the issue?

juliohm commented 7 years ago

I don't know if the issue is on my side, but I was expecting to see more color transitions in these cubes:

cube

I am still working heavily on the code, so it might as well be a bug on my package. The script to reproduce (requires GeoStats.jl master):

using GeoStats

geodata = GeoDataFrame(DataFrames.DataFrame(
                                            x=[25.,50.,75.],
                                            y=[25.,75.,50.],
                                            z=[10.,20.,30.],
                                            value=[1.,0.,1.],
                                            value2=[2.,3.,4]), [:x,:y,:z])

domain = RegularGrid{Float64}(100,100,30)

problem = EstimationProblem(geodata, domain, [:value])

solver = Kriging(
    :value=>KrigParam(variogram=GaussianVariogram(range=20.))
)

solution = solve(problem, solver)

using Plots; glvisualize()

plot(solution, size=(1000,500))
juliohm commented 7 years ago

Nevermind, I changed the range of the variogram model to a larger value and it starts to show more colors. Is there any way to slice or interact with the plot using the glvisualize() backend?

mkborregaard commented 7 years ago

If you're in the REPL you should get an interactive window - Juno just displays a static image.

juliohm commented 7 years ago

I'm running it in Jupyter, interactivity should work there as well?

On Aug 17, 2017 1:08 AM, "Michael Krabbe Borregaard" < notifications@github.com> wrote:

If you're in the REPL you should get an interactive window - Juno just displays a static image.

— 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/1016#issuecomment-322999677, or mute the thread https://github.com/notifications/unsubscribe-auth/ADMLbZqRawsN4nqgOuqqOdFZSItHpN3fks5sY_UCgaJpZM4O5zTD .

SimonDanisch commented 7 years ago

Not really. But maybe soon, now that @shashi started helping me out: https://github.com/JuliaLang/IJulia.jl/issues/550

juliohm commented 7 years ago

Thanks for your work @SimonDanisch, that would be awesome.

juliohm commented 6 years ago

I am closing this one as it is not priority. Looking forward to a solution with Makie.jl :)