Revision: 6525
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6525&view=rev
Author:   jdh2358
Date:     2008-12-08 23:27:08 +0000 (Mon, 08 Dec 2008)

Log Message:
-----------
removed dashtick

Removed Paths:
-------------
    trunk/matplotlib/examples/pylab_examples/dashtick.py

Deleted: trunk/matplotlib/examples/pylab_examples/dashtick.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/dashtick.py        2008-12-08 
22:04:15 UTC (rev 6524)
+++ trunk/matplotlib/examples/pylab_examples/dashtick.py        2008-12-08 
23:27:08 UTC (rev 6525)
@@ -1,61 +0,0 @@
-# Matplotlib xaxis label tweak
-# -*- noplot -*-
-
-import sys
-import matplotlib
-from matplotlib import pylab, ticker
-
-ROTATION=75
-DASHROTATION=75
-DASHBASE=10
-DASHLEN=35
-DASHSTAGGER=3
-FONTSIZE=6
-
-def dashlen(step):
-    return DASHBASE+(DASHLEN*(step%DASHSTAGGER))
-
-def test_dashticklabel():
-    pylab.clf()
-    x = [0.0, 1.0, 1.1, 5.0, 5.1, 6.0]
-    y = [1, 3, 2, 5, 1, 2]
-    labels = ['foo', 'bar', 'baz', 'alpha', 'beta', 'gamma']
-    locator = ticker.FixedLocator(x)
-    formatter = ticker.FixedFormatter(labels)
-    axis = pylab.axes([0.3, 0.3, 0.4, 0.4])
-    axis.xaxis.set_major_locator(locator)
-    axis.xaxis.set_major_formatter(formatter)
-    axis.yaxis.set_major_locator(locator)
-    axis.yaxis.set_major_formatter(formatter)
-    for tick in axis.xaxis.get_major_ticks():
-        tick.label2On = True
-    for tick in axis.yaxis.get_major_ticks():
-        tick.label2On = True
-    step = 0
-    for label in axis.get_xticklabels():
-        pylab.setp(label,
-                   rotation=ROTATION,
-                   dashlength=dashlen(step),
-                   dashrotation=DASHROTATION,
-                   fontsize=FONTSIZE,
-                  )
-        step += 1
-    step = 0
-    for label in axis.get_yticklabels():
-        pylab.setp(label,
-                   rotation=90-ROTATION,
-                   dashlength=dashlen(step),
-                   dashrotation=90-DASHROTATION,
-                   fontsize=FONTSIZE,
-                  )
-        step += 1
-    pylab.xlabel('X Label')
-    pylab.ylabel('Y Label')
-    pylab.plot(x, y)
-    axis.set_xlim((0.0, 6.0))
-    axis.set_ylim((0.0, 6.0))
-    pylab.savefig('dashticklabel')
-    pylab.show()
-
-if __name__ == '__main__':
-    test_dashticklabel()


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to