Discussion:
[Matplotlib-users] Multiple Projections On Same Axes
T J
2015-06-29 22:00:51 UTC
Permalink
When I read the transformations documentation:

http://matplotlib.org/devel/add_new_projection.html#creating-a-new-projection

it seems like each projection is tied to an Axes instance. How might I go
about plotting two different projections on the same axes? Let's just
assume that the actual axes each projection draws is exactly same and all
that differs between to the two is how data is mapped to axis coordinates.
Benjamin Root
2015-06-30 16:36:08 UTC
Permalink
twinx()/twiny() I think is your best bet. It isn't a fully generic
solution, but I think it addresses most needs.

Ben Root
Post by T J
http://matplotlib.org/devel/add_new_projection.html#creating-a-new-projection
it seems like each projection is tied to an Axes instance. How might I go
about plotting two different projections on the same axes? Let's just
assume that the actual axes each projection draws is exactly same and all
that differs between to the two is how data is mapped to axis coordinates.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
T J
2015-06-30 17:20:33 UTC
Permalink
Ok, sounds like I'll have to copy what those do, as I'm not planning on
working with Cartesian or even curvilinear coordinates.
Post by Benjamin Root
twinx()/twiny() I think is your best bet. It isn't a fully generic
solution, but I think it addresses most needs.
Ben Root
Post by T J
http://matplotlib.org/devel/add_new_projection.html#creating-a-new-projection
it seems like each projection is tied to an Axes instance. How might I
go about plotting two different projections on the same axes? Let's just
assume that the actual axes each projection draws is exactly same and all
that differs between to the two is how data is mapped to axis coordinates.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root
2015-06-30 18:55:33 UTC
Permalink
Well, the way those work is essentially overlay one axes object over
another along with some extra fanagiling to link up the shared axis and put
ticks on opposing sides. If your projection is already available as an
axes, then you are good to go that way. However, it sounds what you want is
to have some things follow one transform while others follow another? That
is certainly doable, it is just a question of bookkeeping.

I would check to see if the axis_artist1 toolkit supplies what you need (or
at least some of it).

Ben Root
Post by T J
Ok, sounds like I'll have to copy what those do, as I'm not planning on
working with Cartesian or even curvilinear coordinates.
Post by Benjamin Root
twinx()/twiny() I think is your best bet. It isn't a fully generic
solution, but I think it addresses most needs.
Ben Root
Post by T J
http://matplotlib.org/devel/add_new_projection.html#creating-a-new-projection
it seems like each projection is tied to an Axes instance. How might I
go about plotting two different projections on the same axes? Let's just
assume that the actual axes each projection draws is exactly same and all
that differs between to the two is how data is mapped to axis coordinates.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...