- chart->lp = pl_newpl_r ("X",0,stdout,stderr,chart->pl_params);
+ chart = xmalloc(sizeof(struct chart) );
+
+ for (d = outp_drivers (NULL); d; d = outp_drivers (d))
+ {
+ assert(d->class->initialise_chart);
+ d->class->initialise_chart(d, chart);
+ break; /* KLUDGE!! */
+ }
+
+ if ( ! chart->lp )
+ return 0;