suppress the grid and labels altogether. The default for this option is
to automatically select sensible values.
+If you have set --y-grid to 'none' not only the labels get supressed, also
+the space reserved for the labels is removed. You can still add space
+manually if you use the --units-length command to explicitly reserve space.
+
[B<-Y>|B<--alt-y-grid>]
Place the Y grid dynamically based on the graph's Y range. The algorithm
if (im->draw_x_grid) {
Yxlabel=im->text_prop[TEXT_PROP_AXIS].size *2.5;
}
- if (im->draw_y_grid) {
+ if (im->draw_y_grid || im->forceleftspace ) {
Xylabel=gfx_get_text_width(im->canvas, 0,
im->text_prop[TEXT_PROP_AXIS].font,
im->text_prop[TEXT_PROP_AXIS].size,
im->maxval = DNAN;
im->unitsexponent= 9999;
im->unitslength= 6;
+ im->forceleftspace = 0;
im->symbol = ' ';
im->viewfactor = 1.0;
im->extra_flags= 0;
break;
case 'L':
im->unitslength = atoi(optarg);
+ im->forceleftspace = 1;
break;
case 'T':
im->tabwidth = atof(optarg);
#endif
long ximg,yimg; /* total size of the image */
double magfact; /* numerical magnitude*/
- long base; /* 1000 or 1024 depending on what we graph */
+ long base; /* 1000 or 1024 depending on what we graph */
char symbol; /* magnitude symbol for y-axis */
float viewfactor; /* how should the numbers on the y-axis be scaled for viewing ? */
- int unitsexponent; /* 10*exponent for units on y-asis */
+ int unitsexponent; /* 10*exponent for units on y-asis */
int unitslength; /* width of the yaxis labels */
+ int forceleftspace; /* do not kill the space to the left of the y-axis if there is no grid */
+
int extra_flags; /* flags for boolean options */
/* data elements */