Menu

[r494]: / trunk / htdocs / screenshots.html.template  Maximize  Restore  History

Download this file

158 lines (132 with data), 6.5 kB

shots = (

('simple_plot', 'The most basic plot, with text labels', 1),

('subplot_demo', 
"""Multiple regular axes are created with <a
href=matplotlib.matlab.html#-subplot>subplot</a>.  This is a screenshot of the
matplotlib figure window.  Navigation controls on the bottom of the
figure let you pan and zoom the X and Y axis of any combination of
subplots together or separately""", 0),

('histogram_demo', 
"""The <a href=matplotlib.matlab.html#-hist>hist</a> command
automatically generates histograms and will return the bin counts
or probabilities""", 1),

('barchart_demo', """The <a href=matplotlib.matlab.html#-bar>bar</a>
command takes error bars as an optional argument.  You can also use up
and down bars, stacked bars, 'candlestick' bars, etc, ... See <a
href=examples/bar_stacked.py>bar_stacked.py</a> for another example.
""", 1),

('table_demo', """The <a href=matplotlib.matlab.html#-table>table</a>
is an interface to the <a href=matplotlib.table.html>Table</a> class
to build tables on the axes. 
""", 1),

('scatter_demo2', """The <a
href=matplotlib.matlab.html#-scatter>scatter</a> command makes a
scatter plot with (optional) size and color arguments.  This example
plots changes in Intel's stock price from one day to the next with the
sizes coding trading volume and the colors coding price change in day
i.  Here the alpha attribute is used to make semitransparent circle
markers with the <a href=backends.html#Agg>Agg backend</a> """, 1),

('fill_demo', """The <a href=matplotlib.matlab.html#-fill>fill</a>, command lets you
plot filled polygons.  Thanks to Andrew Straw for providing this
function.""", 1),

('date_demo', """
You can plot date data with major and minor ticks and custom tick
formatters for both the major and minor ticks; see <a
href=matplotlib.ticker.html>ticker</a> and <a
href=matplotlib.dates.html>dates</a> for details and usage.  This plot
uses the <a href=matplotlib.finance.html>finance module</a> to
retrieve stock data and plot it with a candlestick plot""",
1),

('finance_work2', """ You can make much more sophisticated financial
plots.  This example emulates one of the <a
href=http://www.advsofteng.com/gallery_finance.html>ChartDirector</a>
financial plot.  Some of the data in the plot, are real financial
data, some are random traces that I used since the goal was to
illustrate plotting techniques, not market analysis!""", 1),

('plotmap', """Jeff Whitaker provided this nice example showing how to
efficiently plot a collection of lines over a colormap image.
""", 1),



('log_shot', """The <a
href=matplotlib.matlab.html#-semilogx>semilogx</a>, <a
href=matplotlib.matlab.html#-semilogy>semilogy</a> and <a
href=matplotlib.matlab.html#-loglog>loglog</a> commands generate log
scaling on the respective axes.  Thanks to Andrew Straw for providing
the log scaling infrastructure.""", 1),

('legend_demo', """The <a
href=matplotlib.matlab.html#-legend>legend</a> command automatically
generates figure legends, with matltab compatible legend placement
commands.  Thanks to Charles Twardy for input on the legend
command""", 1),

('mathtext_demo', """The mathtext module provides TeX style
mathematical expressions using freetype2 and the BaKoMa computer
modern fonts.  See the <a href=matplotlib.mathtext.html>mathtext</a>
module for usage, licensing and backend information.  Requires
matplotlib-0.51 or later.""", 1),

('pcolor_demo', """The <a
href=matplotlib.matlab.html#-pcolor>pcolor</a> command generates
pseudo color plots.""", 1),

('layer_images', """You can layer multiple images of different shapes and colormaps with
alpha blending using the <a
href=matplotlib.matlab.html#-imshow>imshow</a> command.""", 1),

('mri_with_eeg', """A magnetic resonace image (MRI) displayed using <a
href=matplotlib.matlab.html#-pcolor>pcolor</a>, image intensity in the
MRI plotted with <a href=matplotlib.matlab.html#-hist>hist</a>, and
some EEG channels plotted as <a
href=matplotlib.lines.html#Line2D>lines</a> """, 1),

('text_themes', """You can specify <i>themes</i> for your axis text by
making a font dictionary.  Here the default font is <tt>courier</tt>
and the default color is red, but you can override the defaults, as in
the function label in the axes.  See <a
href=matplotlib.matlab.html#-text>text</a> for more information.  This
example uses a python dictionary to control text themes, but you can
also use matlab handle graphics calls.  See the examples file <a
href=examples/text_handles.py>text_handles.py</a> in the src
distribution for a handle graphics demo.""", 1),

('align_text', """You can precisely layout text in data or axes (0,1)
 coordinates.  This example shows you some of the alignment and
 rotation specifications to layout text.""", 1),

('axes_demo', 
"""Arbitrary placement of axes is possible with the <a
href=matplotlib.matlab.html#-axes>axes</a> command.  Here, two inset axes are
placed over a <a href=matplotlib.matlab.html#-subplot>subplot</a>.""", 1), 

('eeg', """ You can embed matplotlib into a pygtk, wxpython or Tk
applications.  Here is a screenshot of an eeg viewer written in pygtk
using matplotlib; the lower axes is using <a
href=matplotlib.matlab.html#-specgram>specgram</a> to plot the
spectrogram of one of the EEG channels.  The code demo linked above is
a much simpler example of embedding matplotlib in pygtk.  For an
example of how to use the navigation toolbar in your applications, see
<a href=examples/embedding_in_gtk2.py>embedding_in_gtk2.py</a>.  If
you want to use matplotlib in a wx application, see <a
href=examples/embedding_in_wx.py>embedding_in_wx.py</a>.  If you want
to work with <a href=http://glade.gnome.org>glade</a>, see <a
href=examples/mpl_with_glade.py>mpl_with_glade.py</a> """, 0),

)

@header@
<h2>Matplotlib sample code and figures</h2>
<h4><i>Click on any image to enlarge</i></h4>

<table cellpadding=10>
+ for shot, desc, mat in shots:
    <tr><td>
      <table width=400 >
      <tr><td>
      <a name=@shot@><b>Code:</b></a> <a href=screenshots/@shot@.py>@shot@.py</a><br>
      </tr></td>
      <tr><td align=left >
      + if mat:
      <table bgcolor=#bfbfbf cellpadding=30 cellspacing=1><tr><td>
      <a href=screenshots/@shot@_large.png><img src=screenshots/@shot@_small.png></a>
      </tr></td></table>
      = else:
      <a href=screenshots/@shot@_large.png><img src=screenshots/@shot@_small.png></a>
      - 
      </tr></td>
      <tr><td>
     @desc@
      </tr></td>
     </table>
	<br><br>
    </td></tr>
-
</table>
@footer@
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.