Hi - I've moved PHPLOT development to https://github.com/ajRepo/phplot . Can you open support requests there instead?
If you get the "image contains errors" error on your browser, it usually means there is text in what's returned in addition to the binary data that defines the image. So perhaps your dbc.php has some HTML header information that it is returning or the like. To tell - look at the raw data being returned for the image and see. Also - I've moved development to git via github ( https://github.com/AJRepo/PHPlot/ ) from Sourceforge.
Is gd installed?
That sounds like a kerning issue ( https://www.freetype.org/freetype2/docs/tutorial/step2.html ). So I would guess that - it is the differences between the Freetype setup that's causing that issue.
Should be straightforward 1) Set PHPlot to save the image (e.g. /tmp/my_phplot_output.png; ) (Look for SetOutputFile) 2) With FPDF $image1 = '/tmp/my_phplot_output.png'; // Insert a logo in the top-left corner $pdf->Image($image1,10,10); or 2) create a cell and put the image in it. //have a cell 40x40 with an image in it, no border, left aligned with text $this->Cell( 40, 40, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY()), 0, 0, 'L', false );
Should be straightforward 1) Set PHPlot to save the image (e.g. /tmp/my_phplot_output.png; ) (Look for variable $output_file) 2) With FPDF $image1 = '/tmp/my_phplot_output.png'; // Insert a logo in the top-left corner $pdf->Image($image1,10,10); or 2) create a cell and put the image in it. //have a cell 40x40 with an image in it, no border, left aligned with text $this->Cell( 40, 40, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY()), 0, 0, 'L', false );
If the entire image disappears there may be an text error message returned which will cause the image to seem to disappear. Look in the logs for an error message - perhaps a comma missing, and.or look at the HTML source returned in that image to see if there's an error message.
the function json_encode just returns a string representation of the data. Try having $data as an array. Something like $data = array( array('Mon', 5), array('Tue', 15), array('Wed', 9), array('Thu', 9), array('Sat', 4), array('Sun', 1) ); See the docs ex-bars1.html for more info and multiple data per day e.g. $data = array( array('Mon',5,1), array('Tue',15,4), ... );
the function json_encode just returns a string representation of the data. Try having $data as an array. Something like $data = array( array('Mon', 5), array('Tue', 15), array('Wed', 9), array('Thu', 9), array('Sat', 4), array('Sun', 1) ); See the docs ex-bars1.html for more info.
For the X-labels - yes you can print only a few labels. One way is to set the X-label to blank (e.g. '') for those you don't want displayed. See the example prune_labels.php For the Y-labels perhaps Custom Data Value Labeling is what you want. See the example: ex-dlexformat.html in the docs.
Use interface name instead of descr for querying interface names.
Had similar problems on Ubuntu 13.10. Had to compile at end adding -lpthread g++...
FIxed by adding the following #include "/usr/include/opencv2/legacy/legacy.hpp"
FIxed by adding the following include "/usr/include/opencv2/legacy/legacy.hpp"
Note: $pkg-config --modversion opencv 2.4.5
tool_triangulaton.cpp compile error
Forgot to mention this is on Linux, Ubuntu 13.10
Get the same thing when trying to compile $make g++ -O3 -c pkg-config --cflags opencv...