Hello everyone. I have 2 Vector<double> vectors A and B of the same size,n. I want to plot A vs B (A along x and B along y). I was trying something like this:
DataOut<1,Vector<double> > data_out;
data_out.add_data_vector (A, "A");
data_out.add_data_vector (B, "B");
// Write the Gnuplot file
data_out.build_patches ();
data_out.write_gnuplot (deallog.get_file_stream());
but it gives these errors:
error: type/value mismatch at argument 2 in template parameter list for ‘template<int dim, int spacedim> class dealii::DataOut’
expected a constant of type ‘int’, got ‘dealii::Vector<double>’