Changeset 148


Ignore:
Timestamp:
02/28/12 10:45:32 (12 years ago)
Author:
pinsard
Message:

rehab ploticus with version 2.41

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile

    r145 r148  
    88# 
    99# $URL$ 
     10# 
     11# - fplod 20120228 
     12# 
     13#   * ploticus command is now (version 2.41) pl 
    1014# 
    1115# - fplod 20120227 
     
    217221        -@rm -f $(DIRTMP)/$(PRODUCT)01_dblatex.err 
    218222        -@rm -f $(DIRTMP)/years_gnuplot.gnu 
     223        -@rm -f $(DIRTMP)/years.ploticus 
     224        -@rm -f $(DIRTMP)/years.png 
    219225        -@rm -f $(DIRTMP)/$(PRODUCT)02.xml 
    220226        -@rm -f $(DIRTMP)/$(PRODUCT)02_dblatex.err 
     
    479485$(DIRWWW)/images/years.png : \ 
    480486$(DIRTMP)/years.ploticus 
    481         @ploticus -o $@ png $< 
     487        @pl -o $@ png $< 
    482488 
    483489$(DIRTMP)/years.ploticus : \ 
  • trunk/years_ploticus.xsl

    r76 r148  
    66 
    77<!-- 
    8 module : 
     8 
     9.. _year_ploticus.xsl: 
     10 
     11DESCRIPTION 
     12=========== 
     13 
    914production d'un fichier de commande ploticus avec données incorporées pour 
    1015le graphe publications/année 
    1116 
    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 ... 
     17SEE ALSO 
     18======== 
    1419 
    15 see also years_gnuplot.xsl  (but no histogram, only linepoints) 
     20alternative :ref:`years_gnuplot.xsl`  (but no histogram, only linepoints) 
    1621 
    17 ++ voir une solution svg http://www.chez.com/xml/exemples/xslt/barchart/ 
     22TODO 
     23==== 
    1824 
    19 update : 
     25voir une solution svg http://www.chez.com/xml/exemples/xslt/barchart/ 
     26 
     27alternative matplotlib 
     28 
     29EVOLUTIONS 
     30========== 
     31 
    2032$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 
    2852--> 
    2953 
     
    3660<xsl:template match="d:bibliography"> 
    3761# 
    38 #  $ ploticus -o years.png png years.ploticus 
     62#  $ pl -o years.png png years.ploticus 
    3963# 
    4064# source : 
     
    5882  titledetails: align=center 
    5983  xaxis.label: Year 
    60   xscaletype: date yy 
     84  xscaletype: date yyyy 
    6185  xaxis.stubs: inc 2 year 
    6286  xaxis.stubformat: yyyy 
     
    78102<xsl:template name="one_year"> 
    79103 <xsl:param name="year"/> 
    80  <xsl:choose> 
    81   <xsl:when test="$year &lt; 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')"/> 
    88105 
    89106 <xsl:text> </xsl:text> 
Note: See TracChangeset for help on using the changeset viewer.