SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: zhangtao <tao...@gm...> - 2014年10月29日 08:14:23
With the sample code below, in matplotlib 1.3.1, the Text are placed at top
left,
which is like the docs said,
"/If a ‘points’ or ‘pixels’ option is specified, values will be added to the
bottom-left and if negative, values will be subtracted from the top-right/".
http://matplotlib.org/api/text_api.html
<http://matplotlib.org/api/text_api.html#matplotlib.text.Annotation> 
but in matplotlib 1.4.2, the Text showed at bottom. 
Is it a bug here?
#sample code:
import matplotlib.pyplot as plt
fig = plt.figure(1, figsize=(8,5))
ax=fig.add_subplot(1,1,1)
ax.annotate('somthing', (8, -8),
 xycoords='axes points', va="top", ha='left', 
 size=10, color='r')
plt.show()
--
View this message in context: http://matplotlib.1069221.n5.nabble.com/ax-annotate-in-1-4-2-behave-different-from-1-3-1-tp44229.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /