Git Product home page Git Product logo

Comments (4)

fishrockz avatar fishrockz commented on July 30, 2024

I have been creating a little app that uses druid and this lib, druid has a nicely scaling svg widget but did not render plotlib graphs properly, I got a PR merged in druid to allow that and am working on a branch to also allow embedded images.

With that merged i will be able to use a branch of this lib to create things like
Screenshot from 2020-01-23 23-56-21

The branch of plotlib i have been working on is https://github.com/fishrockz/plotlib/tree/willsalmon/imshow it is still very ruff and ready but i was wondering how keen others would be on having this? If there is interest then I would like to clean it up and get it merged here. It dose not create contour plots but creates things more like matplotlib imshow()

I would still like to add contour plot functionality but its a fair bit more complex than imshow.

from plotlib.

milliams avatar milliams commented on July 30, 2024

I think that an imshow style feature would be welcome if we can integrate it in well.

For contour plots I think we could do something a bit cleverer and generate the contours automatically as part of the pipeline but apart from that an generic imshow feature could cover a lot of use cases.

from plotlib.

fishrockz avatar fishrockz commented on July 30, 2024

So I implemented this first time with lots of rect's and it scalled very badly (I mean it was supper slow to to write them all out and then read them back in to something else)
My second go was to embbed a png image inside the svg as raw bytes encoded to base64. this worked ok but while embedded images are implemented in most renders lots of them rendered them slightly differently especially if the aspect ratio of the axis did not match that of the underlying data.

from plotlib.

milliams avatar milliams commented on July 30, 2024

From a quick look around, it seems that matplotlib generates the contour lines themselves as (a group of) vector <path> objects and the colours backing it as an <image>.

For example see https://docs.astropy.org/en/stable/visualization/wcsaxes/images_contours-3.svg

from plotlib.

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.