mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 06:30:29 +00:00
Run cargo fmt
This commit is contained in:
parent
3726761549
commit
abd552fde6
1 changed files with 19 additions and 23 deletions
|
@ -11,27 +11,23 @@ fn zero_axes_ok() {
|
||||||
|
|
||||||
terminal
|
terminal
|
||||||
.draw(|mut f| {
|
.draw(|mut f| {
|
||||||
Chart::default()
|
Chart::default()
|
||||||
.block(Block::default().title("Plot").borders(Borders::ALL))
|
.block(Block::default().title("Plot").borders(Borders::ALL))
|
||||||
.x_axis(
|
.x_axis(Axis::default().bounds([0.0, 0.0]).labels(&["0.0", "1.0"]))
|
||||||
Axis::default()
|
.y_axis(Axis::default().bounds([0.0, 1.0]).labels(&["0.0", "1.0"]))
|
||||||
.bounds([ 0.0, 0.0, ])
|
.datasets(&[Dataset::default()
|
||||||
.labels(&["0.0", "1.0"])
|
.marker(Marker::Braille)
|
||||||
)
|
.style(Style::default().fg(Color::Magenta))
|
||||||
.y_axis(
|
.data(&[(0.0, 0.0)])])
|
||||||
Axis::default()
|
.render(
|
||||||
.bounds([ 0.0, 1.0, ])
|
&mut f,
|
||||||
.labels(&["0.0", "1.0"])
|
Rect {
|
||||||
)
|
x: 0,
|
||||||
.datasets(&[Dataset::default()
|
y: 0,
|
||||||
.marker(Marker::Braille)
|
width: 100,
|
||||||
.style(Style::default().fg(Color::Magenta))
|
height: 100,
|
||||||
.data(&[(0.0, 0.0)])])
|
},
|
||||||
.render(&mut f, Rect {
|
);
|
||||||
x: 0,
|
})
|
||||||
y: 0,
|
.unwrap();
|
||||||
width: 100,
|
|
||||||
height: 100,
|
|
||||||
});
|
|
||||||
}).unwrap();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue