home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / splot122.zip / DEMO / INVERAX.SPT < prev    next >
Text File  |  1994-06-06  |  727b  |  27 lines

  1. /* This file illustrates the use of inverse and log axes */
  2.  
  3. #include <splot.h>
  4. double *data;
  5. main() 
  6.    {     
  7.    set(LINEWIDTH,0.06);
  8.    set(CURSYMBOL,OSQUARE);
  9.    set(AXESCLIP,ON);
  10.    set(FONTASPECT,1.5);
  11.    set(AXESTYPE,INVXLOGY);
  12.    axes_box(12,15,1e20,0.001,4,10);
  13.    set(FONTWIDTH,0.8);
  14.    tickmarks();
  15.    ticklabel(BOTTOM,1e+20,"0",20,"50",10,"100",6.6666,"150"
  16.              ,5,"200",4,"250");
  17.    ticklabel(LEFT,1e-3,"10^11^",1e-2,"10^12^",1e-1,"10^13^",1,"10^14^",10,"10^15^");
  18.    set(XMULT,1);
  19.    set(FONTWIDTH,0.9);
  20.    label(BOTTOM,"1000/T");
  21.    label(LEFT,"CARRIER CONCENTRATION");
  22.    set(PLOTTYPE,SYMBOLS);
  23.    readdata("demo\tb4_2_2.dat",data);
  24.    plotdata(data);
  25.    }       
  26.            
  27.