Git Product home page Git Product logo

Comments (10)

dlfivefifty avatar dlfivefifty commented on June 25, 2024 1

Actually meant:

👍 AbstractPlotting.jl (to support Makie.jl)
🎉 RecipesBase.jl (to support Plots.jl)
🚀 Both

Requires.jl might be a good solution.

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 25, 2024 1

Or... since the only packages that will use 3D are downstream (HarmonicOrthogonalPolynomials.jl and MultivariateOrthogonalPolynomials.jl) just put the dependency there

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 25, 2024 1

OK we can use Plots.jl with the plotly() backend: the following gives a plot on a disk:

julia> plotly()
Plots.PlotlyBackend()

julia> r = range(0,1;length=100);

julia> x = r' .* cospi.(2r);

julia> y = r' .* sinpi.(2r);

julia> surface(x, y, exp.(x .+ cos.(y)))

Let's do this now.

(5 years ago I used to do live demos with Makie.jl of PDEs on a disk... annoying that the situation has seemed to have gone backwards...)

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 25, 2024 1

OK this now works:

using MultivariateOrthogonalPolynomials, Plots
plotly()
Z = Zernike()
xy = axes(Z,1)
x,y = first.(xy),last.(xy)
u = Z * (Z \ @.(cos(10x*y)))
surface(u)

from continuumarrays.jl.

jagot avatar jagot commented on June 25, 2024

I actually use neither, I use PyPlot.jl instead; as long as its not a required dependency, i.e. plotting is supported via Requires.jl, I'm fine with either. The other option is of course RecipesBase.jl, for which there seems to be no Makie equivalent yet.

from continuumarrays.jl.

jagot avatar jagot commented on June 25, 2024

RecipesBase.jl is lightweight, AbstractPlotting.jl not so much, so I would vote for Requires.jl 👀

from continuumarrays.jl.

TSGut avatar TSGut commented on June 25, 2024

I feel like in most of the basic uses it's already fairly straightforward to make Plots.jl do the job. For higher dimensional more complicated domains where this would be a pain to manually set up, Makie is probably superior. So I somewhat hesitantly vote AbstractPlotting / Makie. Hesitantly because it lacks a lot of convenience features, e.g. exporting as vector graphics is as far as I know still not supported.

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 25, 2024

RecipesBase.jl is lightweight, AbstractPlotting.jl not so much

Yes I agree... I find the existing of two different recipe formats pretty annoying...

Perhaps best to just make a new package ContinuumArraysAbstractPlotting.jl which is loaded manually for the time being... my understanding of Requires.jl is it is then easy to to have this loaded automatically.

from continuumarrays.jl.

dlfivefifty avatar dlfivefifty commented on June 25, 2024

Annoyingly, Makie.jl (via WGLMakie.jl) doesn't seem to be very reliable in VSCode, and is very slow...

And regular Makie.jl + InfiniteArrays.jl triggers an obscure Julia type inference bug MakieOrg/Makie.jl#933

from continuumarrays.jl.

TSGut avatar TSGut commented on June 25, 2024

Yeah WGLMakie even seems to state that it doesn't support VSCode yet on the documentation. Out of curiosity, is there a reason not to go for GLMakie? Well, I didn't see you already addressed that! GLMakie is the only backend that ever really worked for me, so if that's leading to serious bugs I don't think the other backends will be the solution.

from continuumarrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.