Skip to content

Very small y axis max results in BARGRAPH_TEMP text appearing in png #29

@derekbruening

Description

@derekbruening

From jacp1...@gmail.com on March 04, 2013 13:11:46

What steps will reproduce the problem?
1.Plot a graph such that the y axis maximum is much less than 1

e.g make a graph file:

=cluster Ctl NonCtl
title=test
=table
gene1 0.01 0.01
gene2 0.03 0.03
yformat=%g

2../bargraph.pl -png -non-transparent /tmp/graph.txt > /tmp/graph.png

What is the expected output? What do you see instead?
I expect to see a png containing just the graph and legend. Instead I see the dummy text at the top of the png (BARGRAPH_TEMP_XXX) and lots of empty space between it and a small graph at the bottom of the png.

What version of the product are you using? On what operating system?
Bargraph 4.7 on Centos 6.5

Please provide any additional information below.
It looks like the very small y axis max somehow results in gnuplot emitting fig lines like:
4 0 0 0 -1 0 10.000 0.000 4 125.000 1650.000 6500 -88088 BARGRAPH_TEMP_Ctl\001

The regular expression used to remove this from the fig output only looks for digits at the position occupied by -88088, so the '-' sign prevents the regular expression from matching. I'm not sure if this -ve value is correct, if so then I guess the regexp has to be changed to match this.

Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=29

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions