You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
#include <math.h>
void
chart_write_xlabel(struct chart *ch, const char *label)
{
+ if ( ! ch )
+ return ;
pl_savestate_r(ch->lp);
void
chart_write_ylabel(struct chart *ch, const char *label)
{
+ if ( ! ch )
+ return ;
+
pl_savestate_r(ch->lp);
pl_move_r(ch->lp, ch->data_bottom, ch->ordinate_right);
{
int ds;
+ if ( ! chart )
+ return ;
+
+
pl_savestate_r(chart->lp);
pl_filltype_r(chart->lp,1);
void
chart_datum(struct chart *ch, int dataset UNUSED, double x, double y)
{
+
+ if ( ! ch )
+ return ;
+
+
+
const double x_pos =
(x - ch->x_min) * ch->abscissa_scale + ch->data_left ;
const double y_pos =
(y - ch->y_min) * ch->ordinate_scale + ch->data_bottom ;
-
pl_savestate_r(ch->lp);
pl_fmarker_r(ch->lp, x_pos, y_pos, 6, 15);
double x1, y1;
double x2, y2 ;
+ if ( ! ch )
+ return ;
+
+
if ( lim_dim == CHART_DIM_Y )
{
x1 = ( limit1 - intercept ) / slope ;