Changeset 148
- Timestamp:
- 02/28/12 10:45:32 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/makefile
r145 r148 8 8 # 9 9 # $URL$ 10 # 11 # - fplod 20120228 12 # 13 # * ploticus command is now (version 2.41) pl 10 14 # 11 15 # - fplod 20120227 … … 217 221 -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err 218 222 -@rm -f $(DIRTMP)/years_gnuplot.gnu 223 -@rm -f $(DIRTMP)/years.ploticus 224 -@rm -f $(DIRTMP)/years.png 219 225 -@rm -f $(DIRTMP)/$(PRODUCT)02.xml 220 226 -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err … … 479 485 $(DIRWWW)/images/years.png : \ 480 486 $(DIRTMP)/years.ploticus 481 @pl oticus-o $@ png $<487 @pl -o $@ png $< 482 488 483 489 $(DIRTMP)/years.ploticus : \ -
trunk/years_ploticus.xsl
r76 r148 6 6 7 7 <!-- 8 module : 8 9 .. _year_ploticus.xsl: 10 11 DESCRIPTION 12 =========== 13 9 14 production d'un fichier de commande ploticus avec données incorporées pour 10 15 le graphe publications/année 11 16 12 warning : ploticus did not accept years on 4 digit (yyyy). Only two are available, so this tool should be used if the range of years is more than 13 [1950,2049] or so ... 17 SEE ALSO 18 ======== 14 19 15 see also years_gnuplot.xsl(but no histogram, only linepoints)20 alternative :ref:`years_gnuplot.xsl` (but no histogram, only linepoints) 16 21 17 ++ voir une solution svg http://www.chez.com/xml/exemples/xslt/barchart/ 22 TODO 23 ==== 18 24 19 update : 25 voir une solution svg http://www.chez.com/xml/exemples/xslt/barchart/ 26 27 alternative matplotlib 28 29 EVOLUTIONS 30 ========== 31 20 32 $Id$ 21 fplod 2008-05-05T09:48:05Z aedon.locean-ipsl.upmc.fr (Darwin) 22 force 2 digits format for years 23 fplod 2008-04-29T15:28:53Z aedon.locean-ipsl.upmc.fr (Darwin) 24 chgt for dbk5 in 25 /usr/home/fplod/src/superbib_ws/years_ploticus.xsl sur aedon.locean-ipsl.upmc.fr 26 inspired by /sw/share/ploticus2/pltestsuite/bars3.htm 27 creation 33 34 - fplod 20120228 35 36 * rewrite ReST header 37 * ploticus command is now (version 2.41) pl 38 * ploticus now accept 4 digits year 39 40 - fplod 2008-05-05T09:48:05Z aedon.locean-ipsl.upmc.fr (Darwin) 41 42 * force 2 digits format for years 43 44 - fplod 2008-04-29T15:28:53Z aedon.locean-ipsl.upmc.fr (Darwin) 45 46 * chgt for dbk5 in years_ploticus.xsl 47 48 - fplod yyymmdd? 49 50 * inspired by /sw/share/ploticus2/pltestsuite/bars3.htm 51 creation 28 52 --> 29 53 … … 36 60 <xsl:template match="d:bibliography"> 37 61 # 38 # $ pl oticus-o years.png png years.ploticus62 # $ pl -o years.png png years.ploticus 39 63 # 40 64 # source : … … 58 82 titledetails: align=center 59 83 xaxis.label: Year 60 xscaletype: date yy 84 xscaletype: date yyyy 61 85 xaxis.stubs: inc 2 year 62 86 xaxis.stubformat: yyyy … … 78 102 <xsl:template name="one_year"> 79 103 <xsl:param name="year"/> 80 <xsl:choose> 81 <xsl:when test="$year < 2000"> 82 <xsl:value-of select="format-number(($year - 1900),'00')"/> 83 </xsl:when> 84 <xsl:otherwise> 85 <xsl:value-of select="format-number(($year - 2000),'00')"/> 86 </xsl:otherwise> 87 </xsl:choose> 104 <xsl:value-of select="format-number(($year),'0000')"/> 88 105 89 106 <xsl:text> </xsl:text>
Note: See TracChangeset
for help on using the changeset viewer.