GithubHelp home page GithubHelp logo

Comments (6)

38 avatar 38 commented on July 25, 2024

I guess this is what you are looking for. https://docs.rs/plotters/0.2.7/plotters/chart/struct.DualCoordChartContext.html#method.secondary_plotting_area

from plotters.

serzhiio avatar serzhiio commented on July 25, 2024

Why secondary? And how to extract pixel coordinates?

from plotters.

38 avatar 38 commented on July 25, 2024

Oh, I see, I misunderstood what you are trying to do.
You should be able to strip the attached coordinate by using code like that.

chart.plotting_area().strip_coord_spec()

https://docs.rs/plotters/0.2.7/plotters/drawing/struct.DrawingArea.html#method.strip_coord_spec

from plotters.

serzhiio avatar serzhiio commented on July 25, 2024

Is it possible to draw series on the chart using pixel coordinates?
I mean LineSeries?

from plotters.

38 avatar 38 commented on July 25, 2024

Not for now. But I think this may be something worth to add.

draw_series is almost the same as

series.for_each(|element| area.draw(element))

But if you want to add series annotation for series drawn in this way, it seems very tricky.
But an API like draw_pixel_coord_series which provides ability for further annotation seems a nice idea.

I don't know if this is what you are asking for ?

from plotters.

serzhiio avatar serzhiio commented on July 25, 2024

Here is what i looked for:
let (_, order_y) = price_chart.backend_coord(&(from, (max+min)/2.0));

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.