GithubHelp home page GithubHelp logo

Comments (4)

38 avatar 38 commented on July 25, 2024 1

The fastest way, you may already know is draw it yourself. Since Plotters expose full drawing API to developer.

Things may be helpful to you is:

First, we can use this https://docs.rs/plotters/0.2.7/plotters/chart/struct.ChartContext.html#method.plotting_area To get the plotting area.

Then, you can use https://docs.rs/plotters/0.2.7/plotters/drawing/struct.DrawingArea.html#method.draw to draw anything you want on to it.

So the thing may looks like:

      let mut chart ....;
      let pda = chart.plotting_area();
      let range: RangedCoordi32 = (0..100).into();
      for y in range.key_points(5) {
                // In here we get desired location for the tick marks. 
                pda.draw(.....);
      }

Hopefully you can draw anything you want. Feel free to ask me if you have any question :)

In addition, please check this page on what element you can draw: https://docs.rs/plotters/0.2.7/plotters/element/index.html#structs

from plotters.

serzhiio avatar serzhiio commented on July 25, 2024 1

I have almost done this feature.
Hope will PR soon...

from plotters.

serzhiio avatar serzhiio commented on July 25, 2024

Any idea how to inset chart axis and labels while its not implemented?

from plotters.

38 avatar 38 commented on July 25, 2024

Merged #50

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.