Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3361 > unrolled thread

How can I appear the plot ?

Started byDoaa Tawfik <doaaelhadidy797@gmail.com>
First post2016-07-03 15:04 -0700
Last post2016-07-05 11:38 -0700
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  How can I appear the plot ? Doaa Tawfik <doaaelhadidy797@gmail.com> - 2016-07-03 15:04 -0700
    Re: How can I appear the plot ? Karl Ratzsch <mail.kfr@gmx.net> - 2016-07-04 01:25 +0200
      Re: How can I appear the plot ? Doaa <doaaelhadidy797@gmail.com> - 2016-07-03 16:41 -0700
        Re: How can I appear the plot ? Karl Ratzsch <mail.kfr@gmx.net> - 2016-07-04 03:46 +0200
          Re: How can I appear the plot ? Doaa <doaaelhadidy797@gmail.com> - 2016-07-05 11:38 -0700

#3361 — How can I appear the plot ?

FromDoaa Tawfik <doaaelhadidy797@gmail.com>
Date2016-07-03 15:04 -0700
SubjectHow can I appear the plot ?
Message-ID<ad55b9a2-e5fa-4779-806e-8f73cd15c13e@googlegroups.com>
hi all,
I have a problem in gnuplot 
When I run the code (like first.cc or lena-simple.cc), the window of plotting appears empty .
How can I appear the plot ? or what is the code I can add to appear the plot?

[toc] | [next] | [standalone]


#3362

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2016-07-04 01:25 +0200
Message-ID<nlc6sl$bg6$1@solani.org>
In reply to#3361
Am 04.07.2016 um 00:04 schrieb Doaa Tawfik:
> When I run the code (like first.cc or lena-simple.cc), the window of plotting appears empty .
> How can I appear the plot ? or what is the code I can add to appear the plot?

Gnuplot cannot run C++ code, if that is what's your files are. I'm
only judging from the extension .cc, how do you expect anyone to
know what is in them?

 K


[toc] | [prev] | [next] | [standalone]


#3363

FromDoaa <doaaelhadidy797@gmail.com>
Date2016-07-03 16:41 -0700
Message-ID<b2ce8e0f-d613-421a-874c-e9dc0a5532f1@googlegroups.com>
In reply to#3362
Yes, I added this code to C++  Code

 GnuplotHelper plotHelper;
  plotHelper.ConfigurePlot("plot-test",
                           "Title",
                           "xLegend",
                           "ylegend",
                           "png");

  plotHelper.PlotProbe("ns3::Ipv4PacketProbe",
                       "/NodeList/*/$ns3::Ipv4L3Protocol/Tx",
                       "OutputBytes-p1",
                       "Packet Byte Count",
GnuplotAggregator::KEY_BELOW);

After I run the code, it creates 3 files (first.plt , first.dat .first.sh), then creates first.png but it is empty.

[toc] | [prev] | [next] | [standalone]


#3364

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2016-07-04 03:46 +0200
Message-ID<nlcf67$a84$1@solani.org>
In reply to#3363
Am 04.07.2016 um 01:41 schrieb Doaa:
> Yes, I added this code to C++  Code
> 
>  GnuplotHelper plotHelper;
>   plotHelper.ConfigurePlot("plot-test",
>                            "Title",
>                            "xLegend",
>                            "ylegend",
>                            "png");
> 
>   plotHelper.PlotProbe("ns3::Ipv4PacketProbe",
>                        "/NodeList/*/$ns3::Ipv4L3Protocol/Tx",
>                        "OutputBytes-p1",
>                        "Packet Byte Count",
> GnuplotAggregator::KEY_BELOW);
> 
> After I run the code, it creates 3 files (first.plt , first.dat .first.sh), then creates first.png but it is empty.

Nothing to do with gnuplot itself.

You should ask the guys who wrote this "GnuplotHelper", AFTER you've
tried to work it out yourself by eliminating other error sources,
i.e. your network statistics stuff.

  K




[toc] | [prev] | [next] | [standalone]


#3366

FromDoaa <doaaelhadidy797@gmail.com>
Date2016-07-05 11:38 -0700
Message-ID<0088531c-c296-403b-ab1c-54bd8a6a999e@googlegroups.com>
In reply to#3364
Thanks alot.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web