Skip to ContentSkip to Navigation
Maatschappij/bedrijvenCentrum voor Informatie TechnologieResearch and Innovation SupportVirtual Reality en Visualisatie

Change layout

								
/* This program demonstrates the changes in the lay-out  */

#include <stdio.h>
#include <math.h>
#include "komplot.h"

int main()
{
 float x[]= {1,2,3,4,5,6,7,8,9,10,11,12};
 float y1[]={11.0, 6.8, 5.0, 6.0, 3.0, 4.0, 2.0, 4.0, 8.0, 7.0, 7.0, 10.5};
 float y2[]={7.5, 7.0, 4.0, 7.0, 4.0, 5.0, 6.0, 4.0, 7.0, 4.0, 5.0, 6.0};

 scale_dimensions(0.6);
 scale_annotations(1.5);
 suppress_border(1);
 month_labels(1, 0);
 extra_axes(1, 1);
 sub_intervals(1, 5);
 tick_distances(2, 4);
 legend_position(5, 10);
 ylab_above_y_axis(1);

 frame(22, 1, 12, 12, 0, 15,
     "1968", "* 1000 ton", "Export Dar-es-Salam 1968");
 polyline("Cotton", 12, x, y1);
 line_style_nr(1);
 polyline("Sisal", 12, x, y2);

/*
 printf (" >>>>>> This program generated KOMPLOT.TMP\n");
 printf (" >>>>>> KOMPLOT.TMP is inputfile for komplot\n");
*/
 return 0;

}

							
Laatst gewijzigd:02 oktober 2015 22:22