SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Steve C. <ste...@ya...> - 2004年10月30日 12:19:29
John,
I think the doc string for points_to_pixels() in backend_bases.py and
backend_template.py should be updated define its return type.
Does points_to_pixels() return int, float, or float if the backend
supports it (agg) else int (gtk)?
Regards
Steve
From: John H. <jdh...@ac...> - 2004年10月31日 16:48:39
>>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
 Steve> John, I think the doc string for points_to_pixels() in
 Steve> backend_bases.py and backend_template.py should be updated
 Steve> define its return type. Does points_to_pixels() return
 Steve> int, float, or float if the backend supports it (agg) else
 Steve> int (gtk)?
I think this should be a float return type, to leave issues of
rounding to the last minute when the backend renderer gets the coords
for drawing. Eg, lines.py uses this information to draw line with
lengths in points - you might imagine a situation where the backend
round one way or the other depending on the two end points of the
line. If the points were rounded first, this would not be possible.
If you agree with this, go ahead and update the doc string.
As I mentioned earlier, I'm looking into refactoring the backend
drawing model so that the transformations happen in the backend, which
would obviate some of these problems.
JDH
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 によって変換されたページ (->オリジナル) /