<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>scienceoss.com &#187; tick labels</title>
	<atom:link href="http://scienceoss.com/tags/tick-labels/feed/" rel="self" type="application/rss+xml" />
	<link>http://scienceoss.com</link>
	<description>useful tidbits for using open source software in science</description>
	<lastBuildDate>Wed, 26 May 2010 03:34:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Change distance of tick labels from axis</title>
		<link>http://scienceoss.com/change-distance-of-tick-labels-from-axis/</link>
		<comments>http://scienceoss.com/change-distance-of-tick-labels-from-axis/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 15:42:01 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[matplotlib]]></category>
		<category><![CDATA[plotting]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[pylab]]></category>
		<category><![CDATA[tick labels]]></category>

		<guid isPermaLink="false">http://scienceoss.com/?p=63</guid>
		<description><![CDATA[Set the rc parameters using the rc function. import pylab as p p.rc(('xtick.major','xtick.minor','ytick.major','ytick.minor'), pad=10) p.plot([1,2,3]) If you only want to change one of the tick labels, say, the x major ticks, use p.rc(&#8216;xtick.major), pad=10) When you&#8217;re done and want to reset the rc settings, use p.rcdefaults() See matplotlibrc for more settings you can change via [...]]]></description>
			<content:encoded><![CDATA[<p>Set the rc parameters using the <span class="c">rc</span> function.</p>
<pre class = "prettyprint"><code class = "code">
import pylab as p
p.rc(('xtick.major','xtick.minor','ytick.major','ytick.minor'), pad=10)
p.plot([1,2,3])
</code></pre>
<p>If you only want to change one of the tick labels, say, the x major ticks, use<br />
p.rc(&#8216;xtick.major), pad=10)</p>
<p>When you&#8217;re done and want to reset the rc settings, use</p>
<pre class = "prettyprint"><code class = "code">p.rcdefaults()</code></pre>
<p>See matplotlibrc for more settings you can change via the <code>rc</code> command.</p>
]]></content:encoded>
			<wfw:commentRss>http://scienceoss.com/change-distance-of-tick-labels-from-axis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change tick locations and labels in ggplot</title>
		<link>http://scienceoss.com/change-tick-locations-and-labels-in-ggplot/</link>
		<comments>http://scienceoss.com/change-tick-locations-and-labels-in-ggplot/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 01:00:00 +0000</pubDate>
		<dc:creator>ryan</dc:creator>
				<category><![CDATA[ggplot2]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[tick labels]]></category>

		<guid isPermaLink="false">http://scienceoss.com/?p=61</guid>
		<description><![CDATA[Use the scale_x_continuous (or scale_y_continuous) to change tick locations and labels in ggplot. Change the ticks: p = ggplot(diamonds)+aes(x=carat,y=price) + scale_x_continuous(breaks=c(1,1.2,1.5,2.5)) Change the ticks and tick labels: p = ggplot(diamonds)+aes(x=carat,y=price) + scale_x_continuous(breaks=c(1,1.2,1.5,2.5), labels=c('a','b','c','d'))]]></description>
			<content:encoded><![CDATA[<p>Use the scale_x_continuous (or scale_y_continuous) to change tick locations and labels in <a href="http://had.co.nz/ggplot2/">ggplot</a>.</p>
<p>Change the ticks:</p>
<pre class = "prettyprint"><code class = "code">
p = ggplot(diamonds)+aes(x=carat,y=price) +
   scale_x_continuous(breaks=c(1,1.2,1.5,2.5))
</code></pre>
<p>Change the ticks and tick labels:</p>
<pre class = "prettyprint"><code class = "code">p = ggplot(diamonds)+aes(x=carat,y=price) +
   scale_x_continuous(breaks=c(1,1.2,1.5,2.5), labels=c('a','b','c','d'))</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://scienceoss.com/change-tick-locations-and-labels-in-ggplot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

