Comments (4)
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.
I have almost done this feature.
Hope will PR soon...
from plotters.
Any idea how to inset chart axis and labels while its not implemented?
from plotters.
Merged #50
from plotters.
Related Issues (20)
- Ability to save figures in the same way you can in rust in a notebook environment. HOT 3
- [BUG] currently nightly compiler cannot build plotters due to bug in pathfinder (simd) HOT 11
- [BUG] Even your own Examples doesn't work HOT 3
- [BUG] Drawing series can hang under certain conditions HOT 7
- [BUG] Can't outline/stroke polygon for svg HOT 1
- [BUG] example crash under centos 7.5 HOT 1
- [BUG] plotters-canvas build error
- plotters v0.3.5 has RUSTSEC-2023-0020 from font-kit v0.11.0 HOT 2
- [BUG] titled function draw text position error when generating PNG file HOT 3
- [BUG] unsafe preconditions violated HOT 12
- default font size?
- [BUG] Spacing between words removed HOT 1
- Step charts
- [BUG] 'static lifetime requirement for `ChartContext`
- pie RGBAcolor
- Warning due to use of deprecated default_features HOT 1
- [BUG] AsRangedCoord not implemented for Range<NaiveDateTime>
- Drawing 3d Voxels
- [BUG] Time for axes does not work on single day with different hours
- [Feature Request] Stroke width/outline for text in bitmap backend
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotters.