Changeset 150
- Timestamp:
- 02/28/12 14:04:10 (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makefile
r149 r150 6 6 # génération des pages superbib 7 7 # 8 # TODO 9 # ==== 10 # 11 # ask for end-user graphic tool 12 # 8 13 # EVOLUTIONS 9 14 # ========== … … 15 20 # - fplod 20120228 16 21 # 22 # * matplotlib ok on halios even if the image is too large 23 # * gnuplot process is also done but not use (to uggly) 17 24 # * ploticus command is now (version 2.41) pl 18 25 # … … 227 234 -@rm -f $(DIRTMP)/years_gnuplot.gnu 228 235 -@rm -f $(DIRTMP)/years.ploticus 236 -@rm -f $(DIRTMP)/years_matplotlib.py 229 237 -@rm -f $(DIRTMP)/years.png 230 238 -@rm -f $(DIRTMP)/$(PRODUCT)02.xml … … 490 498 $(DIRWWW)/images/years.png : \ 491 499 $(DIRTMP)/years.ploticus \ 492 $(DIRTMP)/years_gnuplot.gnu 500 $(DIRTMP)/years_gnuplot.gnu \ 501 $(DIRTMP)/years_matplotlib.py 493 502 @gnuplot years_gnuplot.gnu 494 503 @pl -o $@ png $< 504 @python years_matplotlib.py 505 506 $(DIRTMP)/years_matplotlib.py : \ 507 $(DIRTMP)/biblio.xml \ 508 $(DIRSRC)/years_matplotlib.xsl \ 509 $(DIRSRC)/biblioentry_xml.xsl \ 510 $(DIRSRC)/message_lang.xsl 511 @xsltproc \ 512 --param makedate "'$(MAKEDATE)'" \ 513 --param path "'$(DIRWWW)/images/'" \ 514 --output $@ \ 515 $(DIRSRC)/years_matplotlib.xsl \ 516 $< 495 517 496 518 $(DIRTMP)/years_gnuplot.gnu : \ … … 501 523 @xsltproc \ 502 524 --param makedate "'$(MAKEDATE)'" \ 503 --param path "'$(DIR TMP)'" \525 --param path "'$(DIRWWW)/images/'" \ 504 526 --output $@ \ 505 527 $(DIRSRC)/years_gnuplot.xsl \ -
trunk/tests/demo1.sh
- Property svn:executable set to *
-
trunk/tests/demo2.sh
- Property svn:executable set to *
-
trunk/years_matplotlib.xsl
r113 r150 31 31 see http://matplotlib.sourceforge.net/examples/pylab_examples/demo_ribbon_box.html 32 32 33 doctest 34 33 35 EVOLUTIONS 34 36 ========== 35 37 36 38 $Id$ 39 37 40 $URL$ 41 42 - fplod 20120228 43 44 * add yticks and ylim 45 * remove plot_shox to avoid interaction 38 46 39 47 - fplod 20110627T144044Z aedon.locean-ipsl.upmc.fr (Darwin) … … 60 68 :: 61 69 62 $ python graph1_<xsl:value-of select="years"/>.py70 $ python years_matplotlib.py 63 71 64 72 … … 94 102 </xsl:for-each> 95 103 104 ax.set_ylim(min(values)-1, max(values)+1) 96 105 ax.set_xlim(dates[0]-0.5, dates[-1]+0.5) 106 plot.yticks(np.arange(min(values)-1,max(values)+1,1)) 97 107 plot.bar(dates, values,width=0.5) 98 108 … … 101 111 # 102 112 fig.savefig('<xsl:value-of select="$path"/>/years.png') 103 104 plot.show()105 113 106 114 </xsl:template>
Note: See TracChangeset
for help on using the changeset viewer.