Visualization in Python with matplotlib - University of Virginia
[Pages:29]Visualization in Python with matplotlib
Pete Alonzi Research Data Services UVa Library
March 1, 2016
Check us out
data.library.virginia.edu
What we're gonna do today
? 2-3:30 ? Get everyone up and running with python ? python interfaces ? Loading matplotlib ? Plotting 101 (create and save) ? Histograms, scatter plots ? Cosmetics ? multiplots
Installation of Python
? Two Notes
? Language (python) vs language distribution (anaconda) ? Python 2 vs Python 3
?
1. Scroll to your operating system 2. Click on the blue box under Python 2.7 3. Follow the instructions
Interfaces
? Command line interpreter (and ipython) ? Commandline script execution ? Ipython notebook / jupyter ? Spyder (generalize to ide)
Loading matplotlib
? It depends on your interface
A basic plot
? C:\Users\lpa2a>python
? >>> import matplotlib.pyplot as plt ? >>> x=range(10) ? >>> plt.plot(x) ? >>> plt.show()
Why blue? Why a line? Why a line with slope of 1? Why does it hang after show?
Saving a plot
? There are two ways to save the plot:
? Use the command line:
? >>> plt.savefig(`test.pdf') ? Must be done before the show command
? Use the gui:
? Click the save icon ? Type in the file name ? select the file type
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- scientific visualization with wxpython and matplotlib
- c s e 2 5 2 a c o m p u te r v i s i o n i fa l l 2 0 2 1 as s i g n
- imshow imshow with shading
- visualization in python with matplotlib university of virginia
- 6 advanced plotting mubdi rahman
- installing matplotlib in thonny university of delaware
- matplotlib tips tricks
- matplotlib python plotting
- matplotlib for beginners
- matplotlib cheat sheet clarusway
Related searches
- university of scranton sign in d2l
- university of texas in arlington tx
- data visualization in r
- normalization in python with numpy
- calculator in python with functions
- 3d visualization in python
- university of illinois in chicago il
- university of illinois in chicago hospital
- data visualization in python
- make csv file in python with pandas
- matplotlib in python install
- slicing in python with colon