Comments (6)
Hi @JoshKarpel I just added such a function in version
0.4.4
🚢Haven't gotten around to do the "hard cap on line length" part yet, but hope this helps already.
If you can share I'd be curious to see what you end up with on your side!
It's working really well so far! JoshKarpel/spiel#33
from uniplot.
So let's say you had a function
plot_to_string
that has the same signature asplot
but without theinteractive
option, would that help already?
Definitely!
In particular right now uniplot does not guarantee a horizontal dimension, as width is the
width
option plus how much space the vertical axis labels take. Depending on how you want to integrate the output, would that be an issue for you?
I don't think it's a deal breaker, but it might make things easier. I could certainly do without it for a first pass!
My current thinking is that I'll probably be sticking the plot output inside a https://rich.readthedocs.io/en/stable/reference/text.html#rich.text.Text , and I can disable wrapping - but that means the plot might get cut off if I don't guess the width right.
from uniplot.
Thanks @JoshKarpel!
I'll have a look over the weekend, but I think it shouldn't be too hard, might actually end up with more readable code when splitting the plot generation and text output.
I also thought about limiting the bounding box of the plot, this should also be possible by computing the vertical axis labels first, and then shrinking the plot window if needed. But I'll leave this for a later date.
from uniplot.
Hi @JoshKarpel thanks for the request!
Should be possible fairly easily. So let's say you had a function plot_to_string
that has the same signature as plot
but without the interactive
option, would that help already?
In particular right now uniplot does not guarantee a horizontal dimension, as width is the width
option plus how much space the vertical axis labels take. Depending on how you want to integrate the output, would that be an issue for you?
from uniplot.
Hi @JoshKarpel I just added such a function in version 0.4.4
🚢
Haven't gotten around to do the "hard cap on line length" part yet, but hope this helps already.
If you can share I'd be curious to see what you end up with on your side!
from uniplot.
Very cool! 😄 Looking forward to see how Spiel progresses
from uniplot.
Related Issues (20)
- Occasional gaps in lines HOT 2
- Missing precision on x axis values, making them identical HOT 3
- [Question] Does Uniplot Support .py files? HOT 2
- Requesting Support for Plotting Line Graphs HOT 6
- Support for using datetime values for x axis labels HOT 11
- Fill area under curve HOT 1
- Incorrect centering of labels with units
- Feature request: Boxplot HOT 3
- Can it support NaN? HOT 7
- Suggestion for speeding up large data HOT 6
- Incorrect axis labels in rare cases
- Manually set view bounds do not work correctly with log flags
- Label choice does not always seem optimal HOT 1
- Support for using datetime values for y axis labels
- Configurable move / zoom keys HOT 4
- Histogram x-axis range ignored HOT 3
- Missing link to repository on PyPI page HOT 3
- Use different characters instead of colors HOT 2
- plot fails when multiseries is provided with empty list HOT 2
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 uniplot.