<https://lh3.googleusercontent.com/-ZVFmNPODnDY/WLF9CBK0qjI/AAAAAAAAAC0/lXUBcZzLm2Utphq840b42uANTYQ_GHtowCLcB/s1600/plot.jpg>
Hi!

I was looking through the documentation but I could not figure out how to 
make graphic output of a simiple 1D plot like one I attached to this post.
I had to output my data to a file and draw the graph by hand to show it to 
you. My data are just two columns: X, Y. When I look at gnuplot file 
generated by
Dealii I see that it tries to draw my data as 2D plot.
Regards, Alex

    MatrixOut matrix_out;
    FullMatrix<double> DBvsF;
    DBvsF.reinit(2, 1000);
    std::vector<double>   frequency;
    

    double w;
    double e = parameters.get_double("dissip");
    unsigned int l;
    unsigned int sz = frequency.size()-1;
    
    for ( l=0; l<1000 ;  l++) {
        step = sqrt(w);
        w+=step;
        double val = log(DbAtFreq(w, &frequency, e));
        DBvsF(0, l)= w;
        DBvsF(1, l) = val;
    }
        

   std::ofstream out("DBvsFrequency.plt");
   matrix_out.build_patches(DBvsF, "M");
   matrix_out.write_gnuplot(out);


-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to