Multiple Projections On Same Axes

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.

twinx()/twiny() I think is your best bet. It isn’t a fully generic solution, but I think it addresses most needs.

Ben Root

···

On Mon, Jun 29, 2015 at 6:00 PM, T J <tjhnson@…287…> wrote:

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.


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Ok, sounds like I’ll have to copy what those do, as I’m not planning on working with Cartesian or even curvilinear coordinates.

···

On Tue, Jun 30, 2015 at 11:36 AM, Benjamin Root <ben.root@…1304…> wrote:

twinx()/twiny() I think is your best bet. It isn’t a fully generic solution, but I think it addresses most needs.

Ben Root

On Mon, Jun 29, 2015 at 6:00 PM, T J <tjhnson@…287…> wrote:

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.


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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

···

On Tue, Jun 30, 2015 at 1:20 PM, T J <tjhnson@…287…> wrote:

Ok, sounds like I’ll have to copy what those do, as I’m not planning on working with Cartesian or even curvilinear coordinates.

On Tue, Jun 30, 2015 at 11:36 AM, Benjamin Root <ben.root@…1304…> wrote:

twinx()/twiny() I think is your best bet. It isn’t a fully generic solution, but I think it addresses most needs.

Ben Root

On Mon, Jun 29, 2015 at 6:00 PM, T J <tjhnson@…287…> wrote:

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.


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users