From: Adrian F. <fe...@ma...> - 2002-02-22 19:24:07
|
On Fri, 22 Feb 2002 Re...@gm... wrote: > Hello all, > > I have some questions about two gtkextra features: > > 1. Is there an easy way to draw an ellipse? Easy means a readymade function > to just pass arguments. Or do I have to draw it via ellipse equation? > And if there is no readymade function, wouldn't it be a cool feature (would > also substitute circles or arcs)? > GtkPlotCanvasChild * gtk_plot_canvas_put_ellipse(GtkPlotCanvas *canvas, gdouble x1, gdouble y1, gdouble x2, gdouble y2, GtkPlotLineStyle style, gfloat width, const GdkColor *fg, const GdkColor *bg, gboolean fill) > 2. By trying to optimally fit my plot into the canvas (it's still an > inconvenient > procedure) I get a nasty problem: the axis lables interfere (or overlap) > with > the axis numbering (right under the axis ticks). Is there a way to manually > move the axis labels (the names) a bit? If so, how? > You can set the jusitfication and the offset with respect to the axes: void gtk_plot_axis_set_labels_offset (GtkPlot *plot, GtkPlotAxisPos axis, gint offset); void gtk_plot_axis_set_labels_attributes (GtkPlot *plot, GtkPlotAxisPos axis, const gchar *font, gint height, gint angle, const GdkColor *foreground, const GdkColor *background, gboolean transparent, GtkJustification justification); Can you send a screenshot the next time, to illustrate the problem? Saludos, <ADRIAN> > Thanks for helping/answering, bye, > Michael. > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net > > > _______________________________________________ > Scigraphica-gtkextra mailing list > Sci...@li... > https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra > |