or more appropriately you might need this

from pylab import *

setp(gca(), 'xticklabels', [])
subplot(111)
ax=twiny()
y = [1, 2, 3, 4]
x = [5, 4, 2, 2]
plot(x, y, 'ro-')
ylim(5,0)
xlim(1,6)
ax.xaxis.tick_top()
xlabel('Y')
ylabel('X')
show()


On Fri, Jun 13, 2008 at 10:24 AM, Oz Nahum <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I am trying to plot an oceanographic profile using some ocean data I have.
> The thing is that in oceanograhy it is common to display graphs where the
> independent variable (x) is depth, and some other data (i.e salinity or
> temperature) is plotted against it. The graph is supposed to look like this
> for example:
>
>                                                          y
>                _______________________________
>               |                                                    *
>               |                                                   *
>               |                                          *  * *
>               |                                        *
>               |                                      *
>               |                                     *
>          x   |                                 *
>               |                               *
>               |                            *
>               |                         *
>               |                        *
>               |                      *
>               |                    *
>               |                  *
>               |                  *
>               |                  *
>
>
> so far I have managed to plot the graph with invert x axis, but I don't
> know how to change the default graph option of intercept of axes in the
> bottom left corner.
> So I hope I made my question clear: how can I plot a graph with intecept of
> axes in the upper left corner ?
> Thanks,
> Oz Nahum,
> Department of Oceanography,
> Hebrew University, Jerusalem
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to