Content deleted Content added
Sadesterbo (talk | contribs) m →Examples: Fixed with my account logged in!!! |
Sadesterbo (talk | contribs) →Plot Types: Spruced up plot types section |
||
Line 41:
==Plot Types==
[[Matplotlib]] supports various types of 2 dimensional and 3 dimensional plots. The support for two dimensional plots is robust including: line plots, histogram, scatter plots, polar plots, box plots, pie charts, bar graphs, and heatmaps. The support for three dimensional plots was added later and while it is good, it is not as robust as 2 dimensional plots. You can have 3 dimensional line plots, scatter plots, and surface plots. You can determine what plot type you need by considering a few factors:<br/>'''Comparing a relationship between different variables:''' line plot, heatmap, contour, scatter<br/>'''Looking for distribution of your dataset:''' box plot, histogram, histogram<br/>'''Comparing different categories:''' box plot, pie chart, bar graph
===Examples===
Line 48:
File:Matplotlib histogram v.svg|'''Histogram'''<br/>Used to display the frequency of subsets in a dataset
File:Sparse data.png|'''Scatter plot'''<br/>Displays each component of the dataset as a single plotted point; shows relationships between points
File:Matplotlib 3d v.svg|'''3D surface plot'''<br/>Represents the dataset in the X, Y, and Z plane
File:Mpl example Helmoltz coils.svg|'''Contour plot'''<br/>Graphs data connecting points of equal values giving a 3D effect
File:Logarithmic Spiral Pylab.svg|'''Polar plot'''<br/>Visualizing data in a circular plane
|