Such as example below. I want to put a new ax at data coordinates
[(45,45),(50,50)], but the transform fail to transform data coordinates to
axes.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.transforms as mtrans
%matplotlib inline
fig = plt.figure()
ax = fig.add_subplot(121,aspect=0.5)
ax.plot(np.linspace(0,100))
ax.set_ylim(0,50)
pbcb = mtrans.Bbox(ax.transLimits.transform([(45,45),(50,50)]))
cbax = fig.add_axes(pbcb)
------------------------------------------------------------------------------
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