|
From: Paul H. <pmh...@gm...> - 2013-11-23 17:20:35
|
Hey Sourav, This example should demonstrate the basics of setting xticks and xticklabels http://matplotlib.org/examples/ticks_and_spines/ticklabels_demo_rotation.html On Sat, Nov 23, 2013 at 4:27 AM, Sourav Chatterjee <sr...@gm...>wrote: > Hi, I have simple xy plot using below. > > import matplotlib.pyplot as pl > > pl.plot([2005.8,2005.4,2005.2,2005,2004.9,2004.8,2004.7,2004.6,2004.5,2004.4,2004.3,2004.2,2004.1,2004],[33.2637,32.4243,58.271,89.3454,21.7372,31.6301,36.6301,13.117,31.6689,17.6246,7.4627,8.7094,5.782,6.3461],'ko-') > > pl.axis([2004,2005.8,0,100]) > pl.show() > > I want on my x-axis only the points specified in pl.plot. Is there any way? > -- > thanks > Sourav > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |