Hi,

I do not know whether this is a bug or misunderstanding of the API. But I am 
trying to draw some data points with not pixle points but symbols.

I am using the following code lines : 
                         std::ofstream File("Histogram.png",std::ios::binary) ;
                        Plotter::parampl("BITMAPSIZE",(char*)"1024x768") ;
                        Plotter::parampl("BG_COLOR",(char*)"white") ;
                        PNGPlotter plotter(std::cin,File,std::cerr) ;
                                        
                        if(plotter.openpl() < 0)
                        {
                                std::cerr << "Error: no open png\n" ;
                                File.close() ;
                                return ;
                        }
                        
                        plotter.erase() ;
                        plotter.fspace(_xmin,_ymin,_xmax,_ymax) ;
                        
                        plotter.flinewidth( 0.01*(_xmax-_xmin) ) ;
                        
                        plotter.pencolorname("black") ;

                        // xachse
                        plotter.fline(0,0,0.9*_xmax,0) ;
                        // yachse
                        plotter.fline(0,0,0,0.9*_ymax) ;

                        plotter.endpath() ;

                        plotter.pencolorname("red") ;
                        plotter.fmarker(hist_mean-hist_sigma,_ymax/2,2,2) ;
                        
                        plotter.fmarker(hist_mean+hist_sigma,_ymax*0.8,2,2) ;
                        
                        if(plotter.closepl() < 0)
                        {
                                std::cerr << "Error when closing png\n" ;
                                File.close() ;
                                return ;
                        }
                        File.close() ;


What I get are big stripes but not stars or any other symbols that  should 
occur. There are two tiny feature within this stripes at the data position, but 
sinde the stripes go horiziontally over the entire png image, they cannot be 
seen in a sense of being a representative of data. 

What is wrong with my code, or is there any hidden problem regarding PNGPlotter 
?

Greetings,

Mathias

_______________________________________________
Bug-plotutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-plotutils

Reply via email to