Giter VIP home page Giter VIP logo

plot-gtk3's People

Contributors

amcphail avatar dudebout avatar

Stargazers

 avatar

Watchers

 avatar  avatar

plot-gtk3's Issues

Build failure with latest hmatrix

Unpacking to plot-gtk3-0.1.0.1/
Resolving dependencies...
Configuring plot-gtk3-0.1.0.1...
Building plot-gtk3-0.1.0.1...
Preprocessing library plot-gtk3-0.1.0.1...
[1 of 3] Compiling Graphics.UI.Gtk.Plot ( lib/Graphics/UI/Gtk/Plot.hs, dist/build/Graphics/UI/Gtk/Plot.o )
[2 of 3] Compiling Graphics.Rendering.Plot.Gtk ( lib/Graphics/Rendering/Plot/Gtk.hs, dist/build/Graphics/Rendering/Plot/Gtk.o )
[3 of 3] Compiling Graphics.Rendering.Plot.HMatrix ( lib/Graphics/Rendering/Plot/HMatrix.hs, dist/build/Graphics/Rendering/Plot/HMatrix.o )

lib/Graphics/Rendering/Plot/HMatrix.hs:117:28:
    Not in scope: ‘constant’

lib/Graphics/Rendering/Plot/HMatrix.hs:117:40:
    Not in scope: ‘dim’
    Perhaps you meant ‘div’ (imported from Prelude)

lib/Graphics/Rendering/Plot/HMatrix.hs:117:57:
    Not in scope: ‘constant’

lib/Graphics/Rendering/Plot/HMatrix.hs:117:69:
    Not in scope: ‘dim’
    Perhaps you meant ‘div’ (imported from Prelude)

Error Message on Mac OS X El Capitan

The below code fails at run-time with the following message

~/git/Haskell/Gtk3Test » stack exec Gtk3Test-exe                                                                                                                                    Fred@Freds-Mac|0:47:11|
2016-02-19 00:47:34.910 Gtk3Test-exe[54150:993438] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
Gtk3Test-exe: SystemziGlibziMainLoop_drvi: interrupted
import           Numeric.LinearAlgebra.Data
import           Graphics.Rendering.Plot.HMatrix
import           Graphics.Rendering.Plot.Gtk
import           Graphics.Rendering.Plot.Render (OutputType(..))

someFunc :: IO ()
someFunc = do
  let x         = vector [1..10]
      y         = vector $ map (^2) [1..10]
  plotHandle    <- mplotH [x , y]
  writePlotHandle plotHandle PDF "Output.pdf" (200,200)

This issue seems to be

However I feel this should be treated as a warning and not an error since the PDF is actually generated fine in the current directory and the error message actually starts with the word WARNING

Not sure if that is something easy to change though but thanks in advance for looking at this

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.