Comments (4)
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
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.
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.
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.
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)
- [SOLVED]Letter Frequency Counter Issue HOT 2
- Add ability to title plots
- Wrong example for scatterplot HOT 3
- Fix examples HOT 2
- Making ContinuousView struct field public
- Plotting to term is broken since 0.5.0 HOT 3
- Set color for Axis Labels
- Chrono DateTime values for X-Axis
- Plans to replace failure dependency? HOT 3
- legend doesn't work well in PointStyle of ContinuousView when saving as svg
- Grouped Bar Charts
- Background color
- How to add a legend? HOT 1
- Flipped CategoricalView HOT 1
- Show Examples rendered in Github
- Allow for logarithmic scales in `ContinuousView`
- Allow for polygons in `ContinuousView`
- Categorical view to text produces empty string HOT 1
- Dependency changes have not made it to crates.io since last version update in 2020
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotlib.