Coder Social home page Coder Social logo

Comments (4)

aantn avatar aantn commented on August 12, 2024

This should be easy to do. Do you have any interest in trying to add the feature yourself and opening a PR? I can point you at the areas in the code you should look at.

from smag.

bermudalocket avatar bermudalocket commented on August 12, 2024

This should be easy to do. Do you have any interest in trying to add the feature yourself and opening a PR? I can point you at the areas in the code you should look at.

I haven't worked with Rust much beyond Hello World and a few Project Euler problems, but I'm more than happy to give it a shot.

from smag.

aantn avatar aantn commented on August 12, 2024

Cool, lets give this a go!

The y-axis bounds are calculated here in DataStore: https://github.com/aantn/smag/blob/main/src/datastore.rs#L72

The command-line arguments are generated automatically from the Args struct here: https://github.com/aantn/smag/blob/main/src/main.rs#L28

I would start by modifying the y-axis bounds function to use a set hardcoded number and make sure that works OK. If it does then add command line arguments by modifying the Args struct. Lastly, you'll have to access the data from the args struct when calculating the y-bounds. You can pass that to DataStore::new here: https://github.com/aantn/smag/blob/main/src/main.rs#L78

from smag.

bermudalocket avatar bermudalocket commented on August 12, 2024

Awesome, thanks. Will give this a shot tomorrow.

from smag.

Related Issues (11)

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.