Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

There are two ways to write error-free programs; only the third one works.


computers / comp.graphics.apps.gnuplot / GNUplot pipe inerface to plot armadillo matrix

SubjectAuthor
o GNUplot pipe inerface to plot armadillo matrixkapil.ece.ecb

1
Subject: GNUplot pipe inerface to plot armadillo matrix
From: kapil.ec...@gmail.com
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 24 Apr 2020 18:22 UTC
X-Received: by 2002:a37:9d3:: with SMTP id 202mr10298900qkj.401.1587752572436; Fri, 24 Apr 2020 11:22:52 -0700 (PDT)
X-Received: by 2002:aca:b487:: with SMTP id d129mr8463071oif.115.1587752572113; Fri, 24 Apr 2020 11:22:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 24 Apr 2020 11:22:51 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=117.234.240.237; posting-account=3IH5bQoAAAAerakdLUDzLLHPgkRhg_e1
NNTP-Posting-Host: 117.234.240.237
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9d1ac923-e3f7-4911-a238-632857dd8972@googlegroups.com>
Subject: GNUplot pipe inerface to plot armadillo matrix
From: kapil.ec...@gmail.com
Injection-Date: Fri, 24 Apr 2020 18:22:52 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
View all headers
Dear All,

I am able to plot data using C++ program utilizing pipe. However I am unable to plot armadillo matrix using pipe (minimal interface)?

Currently I am using following code to plot data from egg.dat file (contain data in matrix format)

gnuplot p;

p("set terminal pngcairo  transparent enhanced font \"arial,20\" fontscale 1.2 size 1000, 700 ");
p("set output \'result.png\'");
p("set xlabel'Time(sec)'");
p("set ylabel'Amplitude (V)'");
p("set style data lines");

p("plot \'egg.dat\' using 1:6 title\'Clock-6\'lt rgb 'blue' lw 2.5,\
  \'egg.dat\' using 1:7 title\'Clock-7\'lt rgb 'red' lw 2.5");

return 0;

Now instead of data from egg.dat, I wish to plot armadillo matrix A. Anyone have any experience?

Thank you.


1
rocksolid light 0.7.2
clearneti2ptor