Giter Site home page Giter Site logo

Comments (9)

sisyphus avatar sisyphus commented on August 12, 2024

From: aero
Sent: Saturday, July 05, 2014 11:06 AM

Can PDL::Graphics::Simple support 'windows' terminal type?

Hi aero,

I don't know the answer to the question - but I have 2 observations:

  1. There's nothing to stop you using the "official gnuplot distribution".
    (You probably already know that :-)

  2. If it turns out that the version that kmx has provided is deficient in
    some way, please let him know - for future reference.

Cheers,
Rob

from pdl-graphics-simple.

drzowie avatar drzowie commented on August 12, 2024

It doesn't currently support "windows" terminal type -- but it's an easy fix to fail over to it. I'll put it on the to-do list.

On Jul 4, 2014, at 7:06 PM, aero [email protected] wrote:

HI,
In Strawberry Perl 5.20 PDL edition
http://strawberryperl.com/download/5.20.0.1/strawberry-perl-5.20.0.1-32bit-PDL.zip
http://strawberryperl.com/download/5.20.0.1/strawberry-perl-5.20.0.1-64bit-PDL.zip

@kmx ( https://github.com/kmx ) puts his own compiled gnuplot 4.6.5 binary in that files.
It only supports 'windows' terminal type.
(it seems that it is different from the official gnuplot distribution http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.5/ which support 'wxt' terminal type.)

but PDL::Graphics::Simple supports 'x11' and 'wxt'.

Can PDL::Graphics::Simple support 'windows' terminal type?


Reply to this email directly or view it on GitHub.

from pdl-graphics-simple.

drzowie avatar drzowie commented on August 12, 2024

OK, I've pushed up a patch that supports the windows type. See if that works for you on your platform.

Cheers,
Craig

On Jul 5, 2014, at 5:17 AM, sisyphus [email protected] wrote:

From: aero
Sent: Saturday, July 05, 2014 11:06 AM

Can PDL::Graphics::Simple support 'windows' terminal type?

Hi aero,

I don't know the answer to the question - but I have 2 observations:

  1. There's nothing to stop you using the "official gnuplot distribution".
    (You probably already know that :-)

  2. If it turns out that the version that kmx has provided is deficient in
    some way, please let him know - for future reference.

Cheers,
Rob

Reply to this email directly or view it on GitHub.

from pdl-graphics-simple.

aero avatar aero commented on August 12, 2024

Hi,
I tried.
but I got the following error message.

>perl -Mblib t\simple.t
1..85
ok 1
NAME       Module                         (synopsis)
----       ------                         ----------
gnuplot    PDL::Graphics::Gnuplot         Gnuplot 2D/3D (versatile; beautiful output)
pgplot     PDL::Graphics::PGPLOT::Window  PGPLOT (venerable but trusted)
plplot     PDL::Graphics::PLplot          PLplot (nice plotting, sloooow images)
prima      PDL::Graphics::Prima           Prima (interactive, fast, PDL-specific)

ok 2
ok 3 - module registration hash exists
ok 4 - there is a modules entry for gnuplot (PDL::Graphics::Simple::Gnuplot)
ok 5 - PDL::Graphics::Simple::Gnuplot::check() ran OK
ok 6 - contructor for gnuplot worked OK
not ok 7 - plot succeeded
#
#   Failed test 'plot succeeded
# '
#   at t\simple.t line 68.
Can't call method "plot" on unblessed reference at D:\Downloads\PDL-Graphics-Simple-master\PDL-Graphics-Simple-master\blib\lib/PDL/Graphics/Simple.pm line 1032, <FOO> line 164.

Testing gnuplot engine: You should see a superposed line plot and bin
plot, with x range from 0 to 9 and yrange from 0 to 9. The two plots
should have different line styles.  OK? (Y/n) >

from pdl-graphics-simple.

drzowie avatar drzowie commented on August 12, 2024

Hmmm...

OK, it appears that the "windows" terminal doesn't support the "persist" option. I went ahead and added a switch to support terminals without that option (windows and aero). Give that a whirl. It may fail the interactive test "window disappeared". If so, I'd appreciate any input you may have on how to destroy a 'windows' terminal display window.

Cheers,
Craig

On Jul 5, 2014, at 10:12 AM, aero [email protected] wrote:

Hi,
I tried.
but I got the following error message.

perl -Mblib t\simple.t
1..85
ok 1
NAME Module (synopsis)


gnuplot PDL::Graphics::Gnuplot Gnuplot 2D/3D (versatile; beautiful output)
pgplot PDL::Graphics::PGPLOT::Window PGPLOT (venerable but trusted)
plplot PDL::Graphics::PLplot PLplot (nice plotting, sloooow images)
prima PDL::Graphics::Prima Prima (interactive, fast, PDL-specific)

ok 2
ok 3 - module registration hash exists
ok 4 - there is a modules entry for gnuplot (PDL::Graphics::Simple::Gnuplot)
ok 5 - PDL::Graphics::Simple::Gnuplot::check() ran OK
ok 6 - contructor for gnuplot worked OK
not ok 7 - plot succeeded

Failed test 'plot succeeded

'

at t\simple.t line 68.

Can't call method "plot" on unblessed reference at D:\Downloads\PDL-Graphics-Simple-master\PDL-Graphics-Simple-master\blib\lib/PDL/Graphics/Simple.pm line 1032, line 164.

Testing gnuplot engine: You should see a superposed line plot and bin
plot, with x range from 0 to 9 and yrange from 0 to 9. The two plots
should have different line styles. OK? (Y/n) >

Reply to this email directly or view it on GitHub.

from pdl-graphics-simple.

aero avatar aero commented on August 12, 2024

Hi,
I tried again. I still got the same error message.
There are no gnuplot pop-up window and "windows disappreared" error.

from pdl-graphics-simple.

drzowie avatar drzowie commented on August 12, 2024

Hmmm...

Could you try this?

perldl> use PDL::Graphics::Gnuplot;
perldl> $w=gpwin(windows,size=>[5,5],title=>"foo",font=>"=16");

If that succeeds, great!
If it fails, please let me know the error message.

Cheers,
Craig

On Jul 5, 2014, at 10:47 AM, aero [email protected] wrote:

Hi,
I tried again. I still got the same error message.
There are no gnuplot pop-up window and "windows disappreared" error.


Reply to this email directly or view it on GitHub.

from pdl-graphics-simple.

kmx avatar kmx commented on August 12, 2024

Could you try this?

perldl> use PDL::Graphics::Gnuplot;
perldl> $w=gpwin(windows,size=>[5,5],title=>"foo",font=>"=16");

pdl> $w=gpwin(windows,size=>[5,5],title=>"foo",font=>"=16");
Compile error: Bareword "windows" not allowed while "strict subs" in use at
(eval 410) line 5, line 164.

However this sequence works nice:

pdl> use PDL::Graphics::Gnuplot
pdl> $w=gpwin("windows",size=>[5,5],title=>"foo",font=>"=16")
pdl> $x = sequence(101) - 50
pdl> $w->plot($x**2)

--kmx

from pdl-graphics-simple.

mohawk2 avatar mohawk2 commented on August 12, 2024

I'm going to close this on the assumption that the above (and patches on master by Craig) fixed this. I will be releasing an updated version to CPAN shortly (as soon as I've fixed https://rt.cpan.org/Ticket/Display.html?id=86275), and will ask you to try that and report issues!

from pdl-graphics-simple.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.