GithubHelp home page GithubHelp logo

piston-demo is broken about plotters HOT 7 CLOSED

plotters-rs avatar plotters-rs commented on August 29, 2024
piston-demo is broken

from plotters.

Comments (7)

38 avatar 38 commented on August 29, 2024

Thats' odd, would you please provide detailed stack trace by running the debug build ?

Thanks

from plotters.

38 avatar 38 commented on August 29, 2024

It seems the dependency i am using for this which called systemstat is broken under MacOS now. I am not sure and I don't have a Mac on my hand. So if you could provide the stack trace with line numbers, it should be extremely helpful.

from plotters.

bermeom avatar bermeom commented on August 29, 2024

Hi
I have this error

error[E0425]: cannot find function draw_piston_window in module plotters::drawing
--> src/main.rs:25:44
|
25 | while let Some(_) = plotters::drawing::draw_piston_window(&mut window, |b| {
|

from plotters.

38 avatar 38 commented on August 29, 2024

Hi
I have this error

error[E0425]: cannot find function draw_piston_window in module plotters::drawing
--> src/main.rs:25:44
|
25 | while let Some(_) = plotters::drawing::draw_piston_window(&mut window, |b| {
|

Would you please provide more details about how you compile the code ?

from plotters.

bermeom avatar bermeom commented on August 29, 2024

I have managed to run that example but using the following configuration in cargo.toml
plotters = {version="0.2.3",default_features = false, features = ["piston"]}
systemstat = "0.1.4"
piston_window = "0.96.0"
But using the last plotters version, the project does not work, i.e
plotters = {version="^0.2.8",default_features = false, features = ["piston"]}
systemstat = "0.1.4"
piston_window = "0.96.0"

from plotters.

38 avatar 38 commented on August 29, 2024

Hi I tried your configure, what I see is this error

error[E0308]: mismatched types
  --> src/main.rs:21:44
   |
21 |     while let Some(_) = draw_piston_window(&mut window, |b| {
   |                                            ^^^^^^^^^^^ expected struct `piston_window::PistonWindow`, found a different struct `piston_window::PistonWindow`
   |
   = note: expected type `&mut piston_window::PistonWindow` (struct `piston_window::PistonWindow`)
              found type `&mut piston_window::PistonWindow` (struct `piston_window::PistonW

This is caused by version conflict of the piston window used by newer version of Plotters and your configuration.

If this is the issue, it seems change the version requirement of psition window to * could solve

pistion_window = "*"

from plotters.

38 avatar 38 commented on August 29, 2024

Closed due to removal of piston backend

from plotters.

Related Issues (20)

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.