SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

Revision: 4841
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4841&view=rev
Author: mdboom
Date: 2008年01月10日 05:28:01 -0800 (2008年1月10日)
Log Message:
-----------
Fix offset labels (so the times symbol is displayed correctly)
Modified Paths:
--------------
 branches/v0_91_maint/lib/matplotlib/ticker.py
Modified: branches/v0_91_maint/lib/matplotlib/ticker.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/ticker.py	2008年01月10日 13:26:35 UTC (rev 4840)
+++ branches/v0_91_maint/lib/matplotlib/ticker.py	2008年01月10日 13:28:01 UTC (rev 4841)
@@ -329,12 +329,16 @@
 if self.offset > 0: offsetStr = '+' + offsetStr
 if self.orderOfMagnitude:
 if self._usetex or self._useMathText:
- sciNotStr = r'{\times}'+self.format_data(10**self.orderOfMagnitude)
+ sciNotStr = self.format_data(10**self.orderOfMagnitude)
 else:
- sciNotStr = u'\xd7'+'1e%d'% self.orderOfMagnitude
+ sciNotStr = '1e%d'% self.orderOfMagnitude
 if self._useMathText:
- return ''.join(('$\mathdefault{',sciNotStr,offsetStr,'}$'))
+ if sciNotStr != '':
+ sciNotStr = r'\times\mathdefault{%s}' % sciNotStr
+ return ''.join(('$',sciNotStr,r'\mathdefault{',offsetStr,'}$'))
 elif self._usetex:
+ if sciNotStr != '':
+ sciNotStr = u'\xd7%s' % sciNotStr
 return ''.join(('$',sciNotStr,offsetStr,'$'))
 else:
 return ''.join((sciNotStr,offsetStr))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 4917
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4917&view=rev
Author: dsdale
Date: 2008年01月31日 11:14:20 -0800 (2008年1月31日)
Log Message:
-----------
forgot to change unicode string to raw string
Modified Paths:
--------------
 branches/v0_91_maint/lib/matplotlib/ticker.py
Modified: branches/v0_91_maint/lib/matplotlib/ticker.py
===================================================================
--- branches/v0_91_maint/lib/matplotlib/ticker.py	2008年01月31日 19:05:28 UTC (rev 4916)
+++ branches/v0_91_maint/lib/matplotlib/ticker.py	2008年01月31日 19:14:20 UTC (rev 4917)
@@ -338,7 +338,7 @@
 return ''.join(('$',sciNotStr,r'\mathdefault{',offsetStr,'}$'))
 elif self._usetex:
 if sciNotStr != '':
- sciNotStr = u'\times%s' % sciNotStr
+ sciNotStr = r'\times%s' % sciNotStr
 return ''.join(('$',sciNotStr,offsetStr,'$'))
 else:
 return ''.join((sciNotStr,offsetStr))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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 によって変換されたページ (->オリジナル) /