I’m not as familiar with Prima as I should be (I’ve only used it a small amount).
If you don’t need the full interactivity of Prima, you can also switch your plot code to use PDL::Graphics::Gnuplot, which has a “text" plot style. It uses Perl array refs (instead of one-dimensional PDLs) to hold the string data. Gnuplot is not as zippy as Prima, and does not support interactive plotting quite as naturally — but it does produce publication quality output. Best, Craig > On Apr 3, 2016, at 10:32 AM, Pakhomov Yury <[email protected]> wrote: > > Hello All! > > I try to make graph using PDL::Graphics::Prima where there is a DataSet > displayed by vertical line (these are positions of center of spectral lines). > I use PlotType of ppair::Spikes. It is simple. But I want to write on the > graph element names near each vertical line as I show in attached picture > test.png generated by xmgrace program. How I can do it in > PDL::Graphics::Prima? > I try use Annotation Dataset ds:note and plot types pnote::Text. But in this > case I should describe annotation for each line separately and when I zoom-in > or zoom-out the graph or move it then generated annotations remain in places. > The file of data with annotation has format like: > 6707.6 0.87 "CN1" > 6707.8 0.92 "Li1" > ..... > I understand that PDL do not read strings from data. But may by there is some > method to display element names. > > > > With respect, Yury > <test.png>------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140_______________________________________________ > pdl-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pdl-general ------------------------------------------------------------------------------ _______________________________________________ pdl-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pdl-general
