Comments (2)
Dear Schmetzler,
thanks for the bug report. That is a real bug which I have now fixed (but not published yet).
The problem is that, due to the size of the data pixel, each time the limits of the plot are calculated, they are set slightly bigger then the data set. The bug is due to the fact that the limits were calculated from the already expanded version and so each time you plot the limits expand and the plot appears to shrink.
I should upload a new version soon with the bug fixed. In the mean time I recommend using the clear_plot
function before each plot to avoid this problem.
Thanks, Savino
from plotext.
Dear Schmetzler,
I have just upgraded plotext to a new version which solved the bug you reported.
Here is the code:
import numpy as np
plt.scatter([10,2,3,5,2,1,5,13,4,2,5,3,2,1,5,6,17,12,15,4,5,4,3,2,5,6,9,8,12,18,5,3,2],rows=10,cols=25)
plt.show()
plt.show()
plt.show()
And the expected output:
• ├ 17.8
• │
• ├ 13.6
• • • │
• ├ 9.4
• │
• • │
• •• • • ••• • • ├ 5.2
••• ••• • ••│
• • ├ 1.0
┬─────┬─────┬─────┬─────┬┘
0 8 16 24 32
• ├ 17.8
• │
• ├ 13.6
• • • │
• ├ 9.4
• │
• • │
• •• • • ••• • • ├ 5.2
••• ••• • ••│
• • ├ 1.0
┬─────┬─────┬─────┬─────┬┘
0 8 16 24 32
• ├ 17.8
• │
• ├ 13.6
• • • │
• ├ 9.4
• │
• • │
• •• • • ••• • • ├ 5.2
••• ••• • ••│
• • ├ 1.0
┬─────┬─────┬─────┬─────┬┘
0 8 16 24 32
You can upgrade your plotext
version using pip install plotext --upgrade
and access the package documentation at pypi:plotext and github:plotext.
The package has been just upgraded so there may be further issues: feel free to report any other, cause it is helpful! :-)
I hope it was useful and all the best using the package !
Savino
from plotext.
Related Issues (20)
- Space in staked bar chart if first value is 0
- OSError with Plotext Event Plot on Windows10 HOT 1
- Out of bound on a simple_stacked_bar with more than 19 stacked dataset HOT 4
- Circular import error on plotext attributes HOT 2
- Time format HOT 2
- wide chars(chinese/japanese,etc) overflowed in legend HOT 2
- AttributeError: module 'plotext' has no attribute 'box' HOT 3
- Is it possible to include asciichartpy style like for the Basic plots?
- BUG: `bar` does not recognize numpy strings as strings
- Feature request: Setting a maximum to bar plots HOT 2
- Terminal Output for Docker-Compose HOT 1
- Tickable bar Plot
- Color per label in bar plot
- Color for the scatter plots
- Time Shift Issue: plot Function Displays Time One Hour Off Compared to Bar Graph
- Line-thickness control? HOT 5
- `plotext.show()` with no data changes subsequent plots HOT 1
- yscale("log") throws math domain error for multiple data sets with multiple show
- _date.py string_to_time can make time zone error
- CandleStick looks wrong on some bars HOT 1
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 plotext.