Try adding these lines before your call to plt.show():

    locs, labels = plt.xticks()
    plt.xticks(locs, np.arange(11, 36))


On Fri, Jun 12, 2015 at 3:10 PM, pb89 <peterbehrin...@gmx.de> wrote:

> hi guys,
>
> i guess thats an easy one for you:
>
> fig=plt.figure()
> rect=fig.patch
> rect.set_facecolor('white')
> ax1=fig.add_subplot(111)
> bp=boxplot(array)
>
> xlabel('case ID')
> ylabel('registration time, sec')
> show()
>
> whereas array is a list of lists with 25 entries.
>
> i want to have the axis not from 0 to 25 but from 11 to 36. How can i do
> that?
>
> thanks
> peter
>
>
>
>
> --
> View this message in context:
> http://matplotlib.1069221.n5.nabble.com/custom-x-axis-integers-boxplot-tp45769.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to