From 36c5ed3af2ff90d897f6b0fa0cec6c27d7362b3a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 17 Oct 2012 11:02:51 +0000 Subject: [PATCH] no tick at the end (by changing the axis range) git-svn-id: http://svn.code.sf.net/p/pyx/code/trunk/pyx@3315 a4f5e268-e194-4f32-bce1-d30804cbbcc5 --- examples/axis/painter.py | 2 +- examples/axis/painter.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/axis/painter.py b/examples/axis/painter.py index aaaea389..718e9b93 100644 --- a/examples/axis/painter.py +++ b/examples/axis/painter.py @@ -4,6 +4,6 @@ mypainter = graph.axis.painter.regular(outerticklength=graph.axis.painter.tickle basepathattrs=[style.linewidth.THick, deco.earrow.large]) c = graph.axis.pathaxis(path.curve(0, 0, 3, 0, 1, 4, 4, 4), - graph.axis.linear(min=0, max=9, title="axis title", painter=mypainter)) + graph.axis.linear(min=0, max=11, title="axis title", painter=mypainter)) c.writeEPSfile("painter") c.writePDFfile("painter") diff --git a/examples/axis/painter.txt b/examples/axis/painter.txt index f1a356ae..fe055e64 100644 --- a/examples/axis/painter.txt +++ b/examples/axis/painter.txt @@ -17,3 +17,7 @@ In this example we set an `outerticklength`. Together with the stroked across the axis. As it is common to sub-components of the axis, you need to pass the adapted instances (stored in the variable `mypainter` here) to the axis in its constructor. + +! In this example there is no tick at the end due to the axis range. You can +suppress individual ticks by the `manualticks` axis parameter with ticklevel +and labellevel being zero. -- 2.11.4.GIT