Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open . when trying to use Owl.Plot #284

Closed
Bronsa opened this issue Jul 23, 2018 · 1 comment
Closed

Can't open . when trying to use Owl.Plot #284

Bronsa opened this issue Jul 23, 2018 · 1 comment
Assignees
Labels

Comments

@Bronsa
Copy link

Bronsa commented Jul 23, 2018

No matter what driver I use (apart from null), I get the same error, I've tried using both a native version of owl and the dockerized version, same results.

Attached an example run using the dockerized version:

[~]> docker run -t -i ryanrhymes/owl
opam@01b1c902c61b:~/owl$ utop
----------------------------------+-------------------------------------------------------------+----------------------------------
                                  | Welcome to utop version 2.0.2 (using OCaml version 4.06.0)! |
                                  +-------------------------------------------------------------+

Type #utop_help for help about using utop.

-( 11:07:35 )-< command 0 >-----------------------------------------------------------------------------------------{ counter: 0 }-
utop # #require "owl_top";;
-( 11:07:35 )-< command 1 >-----------------------------------------------------------------------------------------{ counter: 0 }-
utop # Plot.plot_fun Maths.sin 1. 15.;;

Plotting Options:
 < 1> ps         PostScript File (monochrome)
 < 2> psc        PostScript File (color)
 < 3> xfig       Fig file
 < 4> null       Null device
 < 5> mem        User-supplied memory device
 < 6> wxwidgets  wxWidgets Driver
 < 7> svg        Scalable Vector Graphics (SVG 1.1)
 < 8> bmpqt      Qt Windows bitmap driver
 < 9> jpgqt      Qt jpg driver
 <10> pngqt      Qt png driver
 <11> ppmqt      Qt ppm driver
 <12> tiffqt     Qt tiff driver
 <13> svgqt      Qt SVG driver
 <14> qtwidget   Qt Widget
 <15> epsqt      Qt EPS driver
 <16> pdfqt      Qt PDF driver
 <17> extqt      External Qt driver
 <18> memqt      Memory Qt driver

Enter device number or keyword: 1
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .
Can't open .

*** PLPLOT ERROR, IMMEDIATE EXIT ***
Too many tries.
Program aborted
opam@01b1c902c61b:~/owl$ 
@Bronsa Bronsa changed the title Can't open . when tryint to use Owl.Plot Can't open . when trying to use Owl.Plot Jul 23, 2018
@jzstark
Copy link
Collaborator

jzstark commented Jul 23, 2018

Thanks for reporting this issue. I've recreated the same problem on my computer, but running the code below:

(* create the handle explicitly *)
let h = Plot.create "sin_plot.png" in 
Plot.plot_fun ~h Maths.sin 1. 15.; 
Plot.output h 

seems to work fine. This looks like a bug to be fixed in the Plot module.

@ryanrhymes ryanrhymes self-assigned this Jul 23, 2018
@ryanrhymes ryanrhymes added the bug label Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants