You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to put some work in trying to fix this, but I am fairly inexperienced with this kind of programming. Can someone maybe give me a few pointers for the steps which need to be taken?
Actually, I just discovered this is possible already. It is a bit of a work-around, because you have to set the multilayout in the first Gnuplot::Plot you define. The following works:
Because this is a "global" Gnuplot setting, it would be better to have this implemented on the level of Gnuplot. The resulting class should probably have the methods method_missing, set and unset implemented, together with a @settings like Gnuplot::Plot does. Because this is quite a repetition, a nicer solution can be found than just copy the code, maybe?
Note that any global setting can be provided this way. An other, very ugly, solution would be to direct insert command to the gp object:
Gnuplot.opendo |gp|
gp << "set multiplot layout 2,1\n"Gnuplot::Plot.new(gp)do |plot|
endend
Note the \n.
Reacted by Pranav Prakash, Junegunn Choi and Mikhail Chuprysnki
Activity
rdp commentedon May 22, 2012
looks like "not yet" though you can put multiple lines into a single graph: https://github.com/rdp/ruby_gnuplot/blob/master/examples/multiple_data_sets.rb
akemrir commentedon Jan 22, 2013
anything changed in this case?
I`am interested too, in multiple plots in one document.
rvlasveld commentedon Mar 6, 2013
Maybe in hope to get attention to this one, I would also very much like support for multiplots.
rvlasveld commentedon Mar 7, 2013
I would like to put some work in trying to fix this, but I am fairly inexperienced with this kind of programming. Can someone maybe give me a few pointers for the steps which need to be taken?
rvlasveld commentedon Mar 7, 2013
Actually, I just discovered this is possible already. It is a bit of a work-around, because you have to set the multilayout in the first Gnuplot::Plot you define. The following works:
Because this is a "global" Gnuplot setting, it would be better to have this implemented on the level of Gnuplot. The resulting class should probably have the methods method_missing, set and unset implemented, together with a
@settingslike Gnuplot::Plot does. Because this is quite a repetition, a nicer solution can be found than just copy the code, maybe?Note that any global setting can be provided this way. An other, very ugly, solution would be to direct insert command to the
gpobject:Note the
\n.akemrir commentedon Mar 23, 2013
nice :)