Giter Club home page Giter Club logo

Comments (4)

cailmdaley avatar cailmdaley commented on July 18, 2024 1

Ah sorry for leaving you hanging here, totally forgot about this.

Is theres something that just wont be possible with Plots?

I'm not exactly sure if anything will be outright impossible, but I definitely think some things will be harder. My anecdotal experience is that Plots.jl doesn't let you muck around with axis objects to the same extent as PyPlot, and there have been a few times where I've run into things (can't remember what exactly) that just aren't implemented in the Plots.jl frontend. In any case, I agree that that the PyPlot and Plots hooks should take advantages of the strengths of their respective packages.

As for @requires, we don't actually need to add Plots.jl as a dependency, so I'm not sure if this is necessary. Usually the way you add Plots.jl functionality to a package is via RecipesBase, which is a package with no dependencies that defines "recipes" for Plots.jl to use. Then it's up to the user to do using Plots; plot(...), totally separate from CMBLensing itself. But this is a minor point, and that naming scheme sounds reasonable.

I can take a stab at this sometime in the next few weeks!

from cmblensing.jl.

marius311 avatar marius311 commented on July 18, 2024

Do we want the plot recipes to exactly replicate the PyPlot functionality in plotting.jl?

Which functionality specifically do you mean? Is theres something that just wont be possible with Plots? (I think this is fine btw and shouldnt stop us from putting something in there)

I will say I don't think it needs to replicate the existing functionality, or that one needs to be productions vs. quick&dirty. Rather, I see it as some people might like PyPlot.jl, others might like Plots.jl, and it'd be nice to have a hook into both, each which is consistent with the paradigm / code style of how the particular package.

from cmblensing.jl.

marius311 avatar marius311 commented on July 18, 2024

Feel free to open a PR to start. I think we rename plotting.jl -> pyplot.jl and add a plots.jl, which would similarly be wrapped in a @requires.

from cmblensing.jl.

b-thorne avatar b-thorne commented on July 18, 2024

I quite like Plots.jl, so I am revamping this thread. It seems to be a WIP, with some documented features being backend-specific, and some not being implemented at all. However, I quite like the @recipes functionality, and prefer some of the backends to PyPlot.jl, personally.

I have started a PR (#42) for this, with a first attempt at a flat field recipe.

from cmblensing.jl.

Related Issues (15)

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.