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
|
||||
.draw(|mut f| {
|
||||
Chart::default()
|
||||
.block(Block::default().title("Plot").borders(Borders::ALL))
|
||||
.x_axis(
|
||||
Axis::default()
|
||||
.bounds([ 0.0, 0.0, ])
|
||||
.labels(&["0.0", "1.0"])
|
||||
)
|
||||
.y_axis(
|
||||
Axis::default()
|
||||
.bounds([ 0.0, 1.0, ])
|
||||
.labels(&["0.0", "1.0"])
|
||||
)
|
||||
.datasets(&[Dataset::default()
|
||||
.marker(Marker::Braille)
|
||||
.style(Style::default().fg(Color::Magenta))
|
||||
.data(&[(0.0, 0.0)])])
|
||||
.render(&mut f, Rect {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 100,
|
||||
height: 100,
|
||||
});
|
||||
}).unwrap();
|
||||
Chart::default()
|
||||
.block(Block::default().title("Plot").borders(Borders::ALL))
|
||||
.x_axis(Axis::default().bounds([0.0, 0.0]).labels(&["0.0", "1.0"]))
|
||||
.y_axis(Axis::default().bounds([0.0, 1.0]).labels(&["0.0", "1.0"]))
|
||||
.datasets(&[Dataset::default()
|
||||
.marker(Marker::Braille)
|
||||
.style(Style::default().fg(Color::Magenta))
|
||||
.data(&[(0.0, 0.0)])])
|
||||
.render(
|
||||
&mut f,
|
||||
Rect {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 100,
|
||||
height: 100,
|
||||
},
|
||||
);
|
||||
})
|
||||
.unwrap();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue