Python Matplotlib With Examples
Matplotlib is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib can be used in Python scripts, the Python and IPython shells, the Jupyter notebook, web application servers, and four graphical user interface toolkits.
In this repository, you can find different type of examples available for Matplotlip and python.
- piechart.py: Export piechart using command line arguments.
- export: Default export location for generated files.
- test: Test script location
Switch to another file
All your files and folders are presented as a tree in the file explorer. You can switch from one to another by clicking a file in the tree.
Clone this repository in your local system and run following command to install package dependencies.
$pip install -r requirements.txt
How to use
Run following command in your cloned repository's root to export result in PNG or PDF
$python piechart.py -a="<args>" -f="<args>" -l="<args>" -t="<args>" -s=<args>
Where -a or --axis = Float values for axis -f or --frac = Fraction values -l or --labels = Labels for chart -t or --title = Title of the chart -s or --save_as = png (Save file as .png or .pdf)
$python piechart.py -a="0.1,0.1,0.8,0.8" -f="15, 30, 45, 10" -l="Frogs,Hogs,Dogs,Logs" -t="Test title" -s=png
Above command will export output as a png file inside "export" folder with name foo.png.
- Cover all examples from Matplotlib
- Provide different access method example like API, Argument etc.
- Integration with 3rd party software
Copyright (c) 2019 Shivam Pandya
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.