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 <stdio.h>
struct subcat {
const double *data;
- char *label;
+ const char *label;
};
static const struct subcat sub_catagory[SUB_CATAGORIES] =
draw_barchart(struct chart *ch, const char *title,
const char *xlabel, const char *ylabel, enum bar_opts opt)
{
-
double d;
int i;
double bar_width = interval_size / 1.1 ;
+ double ordinate_scale = fabs(ch->data_top - ch->data_bottom) /
+ fabs(y_max - y_min) ;
+
if ( opt != BAR_STACKED )
bar_width /= SUB_CATAGORIES;
- double ordinate_scale = fabs(ch->data_top - ch->data_bottom) / fabs(y_max - y_min) ;
-
/* Move to data bottom-left */
pl_move_r(ch->lp, ch->data_left, ch->data_bottom);