Hi guys,
I've seen the code in the mesh2 example to print a surfaceplot at pdf.
Here is the code
//FIRST PART
VectorWriter* handler = (VectorWriter*)IO::outputHandler("PDF");
handler->setTextMode(VectorWriter::TEX);
////////////////////////////////
// SECOND PART
VectorWriter* vw = (VectorWriter*)IO::outputHandler("PDF");
if (vw)
vw->setSortMode(VectorWriter::BSPSORT);
//////////////////////////////////
IO::save(m_3dPlot, "myfile.pdf", "PDF" );
//FIRST PART
VectorWriter* handler = (VectorWriter*)IO::outputHandler("PDF");
handler->setTextMode(VectorWriter::TEX);
////////////////////////////////
// SECOND PART
VectorWriter* vw = (VectorWriter*)IO::outputHandler("PDF");
if (vw)
vw->setSortMode(VectorWriter::BSPSORT);
//////////////////////////////////
IO::save(m_3dPlot, "myfile.pdf", "PDF" );
To copy to clipboard, switch view to plain text mode
Now the strange things. If I comment out the SECOND PART, a the pdf is created but it contains only the graph and axes (no labels, no numbers, in generl, no text).
If I keep the SECOND PART and commet out the FIRST PART, the the resutl is shown in the attached file.
PFDSaving.jpg
The text is not saved properly.
Any idea?
Thanks
Bookmarks