plotext plots directly on terminal
Project description
plotext
plots directly on terminal, it has no dependencies and the syntax is very similar to matplotlib
. It also provide a simple command line tool.
Here is an example of what you could output with plotext
:
Follow this menu for details on how to actually use this package.
Main Menu
- Basic Plots
- Bar Plots
- Datetime Plots
- Plot Aspect
- Matrix/Image Plots
- Multiple Subplots
- Other Utilities
How to Installx
To install the latest version of plotext
you could use:
pip install plotext --upgrade
Main Updates:
Note: there are many new features from the previous version, any bug report is useful and very welcomed.
- entire code re-written
- faster plotting
- higher resolution 3 x 2 unicode mosaics markers (not available in windows)
- new color codes which include 256 color codes and full RGB colors
- multiple and stacked bar charts
- datetime plot and scatter functions
- datetime class added to better handle datetime object of most types
- matrix plot
- image plot
- save plots also in color in html
- file class added to better handle files and file paths
- data can also be plotted on the upper x axis
- unittest file added
xside
andyside
parameters introduced for many functions- columns and rows span in subplots matrix
- more clear functions added
- option to limit or not the plot dimensions in both directions
- bar chart log scale solved on both axes
- bar chart 0 value issue solved
- legend extra character to identify on which axes each data is plotted
- time() function added to check plotting computational time
- xfreq() is now xfrequency(), yfreq() is yfrequency()
- doc class added to easily access all functions doc-strings
- get_canvas() is not build()
Future Plans
By request:
- mosaic markers available on windows (not sure how)
- remove grid span areas intersection problems
- bar alignment
- finance function
- text widget to add labels to plot (not as easy as it sounds)
- using numpy to handle the matrix of characters and colors (not sure if it will make a difference)
- title styles
- clear only printed lines done properly
- hist plot log scale on y axes
hd
andfhd
label ticks that adapts to plot or scatter function
Any help or new ideas are welcomed.
Credits and Sources of Inspiration
- user
jtplaarj
for the great ideas and codes regarding multiple and stacked bar plots [Issue #48] - user
ethack
for requiring log scale on bar plot [Issue #37] - user
gregwa1953
for inspiringplt.limit_size()
[Issue #33] - user
rbanffy
for suggestion of using 3 x 2 unicode mosaic box characters [Issue #29]. - user
henryiii
for unittest suggestion [Issue #32] - user
whisller
andwillmcgugan
for integration withRich
package [Issue #26] - user
garid3000
for the idea of a function that returns the plot canvas [Issue #20] - user
robintw
andSauci
for horizontal bar plot idea and code, respectively [Issue #16] - user
Zaneo
for multiple data set idea [Issue #13] - user
Zaneo
for double axes idea [Issue #12] - users
geoffrey-eisenbarth
andmatthewhanson
for requesting datetime support [Issue #7] - user
kris927b
for requesting histogram plot [Issue #6]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plotext-4.0.0.tar.gz
(42.5 kB
view details)
Built Distribution
plotext-4.0.0-py3-none-any.whl
(46.5 kB
view details)
File details
Details for the file plotext-4.0.0.tar.gz
.
File metadata
- Download URL: plotext-4.0.0.tar.gz
- Upload date:
- Size: 42.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eda34b1f3b1cb5aed3d646e5e993cda03b465e7519325f69b95aa6cd26007b0e |
|
MD5 | 6730872ee02007ad1b39a30b90b56c06 |
|
BLAKE2b-256 | 75064570b7be55ad5a04f4bafd055a023ef485407feaf327211757d6460b74fe |
File details
Details for the file plotext-4.0.0-py3-none-any.whl
.
File metadata
- Download URL: plotext-4.0.0-py3-none-any.whl
- Upload date:
- Size: 46.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5ed77ce069c1d20b692f3f130c47ca29b036600d0dbefe39e730e2bb3b4d30 |
|
MD5 | 6738f01952b11948c72bcf3cdbb5e21c |
|
BLAKE2b-256 | 1b48fee7d1f7f78177256bdf7fcc9a9343e4c6bb57978f60ed0acb00e3ffd83b |