! . */
| 15717 | |
| 15718 | /*! . */ |
| 15719 | unsigned int gmtlib_time_array (struct GMT_CTRL *GMT, double min, double max, struct GMT_PLOT_AXIS_ITEM *T, double **array) { |
| 15720 | /* When T->active is true we must return interval start/stop even if outside min/max range */ |
| 15721 | unsigned int n; |
| 15722 | bool interval; |
| 15723 | |
| 15724 | if (!T->active) return (0); |
| 15725 | interval = (T->type == 'i' || T->type == 'I'); /* Only true for i/I axis items */ |
| 15726 | if (T->unit == 's' && T->interval <= 1.0) |
| 15727 | n = gmtlib_linear_array (GMT, min, max, T->interval, 0.0, array); |
| 15728 | else |
| 15729 | n = (unsigned int)gmtsupport_time_array (GMT, min, max, T->interval, T->unit, interval, array); |
| 15730 | |
| 15731 | return (n); |
| 15732 | } |
| 15733 | |
| 15734 | /*! . */ |
| 15735 | unsigned int gmtlib_load_custom_annot (struct GMT_CTRL *GMT, struct GMT_PLOT_AXIS *A, char item, double **xx, char ***labels) { |
no test coverage detected