I've had a strange problem using GD::Graph::lines. I'm using it in a script to draw graphs for six different variables, saved in PNG format and then displayed on an html page (on local drive). I've been doing this daily (on new data each dat) for a couple of weeks.
Today, the png file for one of the graphs won't display on the browser (MSIE). I look at the .png file using the XP pic previewer, and it looks fine. I open in Photoshop, save, and now it displays on the browser.
I'm at a loss to figure out how I can debug this. I'm using a loop to generate all six graphs and it's working for 5/6. So it would appear that GD::Graph must be writing something into the file that the browser doesn't like, and that it's doing this randomly or as a result of the data being plotted. Also Photoshop gets rid of this problem when it saves the file.
Anyone have suggestions for how I can resolve this?
Many thanks....
Steve
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.