generated from mwc/lab_scatter
Completed planning breakdown for scatterplot
I could make the marker, draw the lines, and move the turtle around appropriately to make a reasonable plot, but the thing I'm wondering about is the scale of the plot. It should be easy enough to modify later if it's a problem, but I'm wondering if I should have planned ahead for a plot with so many points, the whole thing should be resized. I'm not 100% sure how I'm going to do the increment for the axis label yet; it's easy enough to calculate the difference and turn that into, say, 5 equal divisions, but I haven't quite decided how I should deal with rounding the number out so it's not something like 63, 154, 245, 336, 427, 518. It's not the worst thing in the world if that's the output but I wouldn't be particularly happy with how it's presented.
This commit is contained in:
@@ -4,9 +4,20 @@
|
||||
- Draw the axes.
|
||||
- Draw the x-axis.
|
||||
- Draw the line.
|
||||
- ...
|
||||
- Add label
|
||||
- Calculate the scale
|
||||
- Determine increment
|
||||
- Draw min label
|
||||
- Draw max label
|
||||
- Draw increment
|
||||
- Draw the y-axis.
|
||||
- Draw the line.
|
||||
- ...
|
||||
- Add label
|
||||
- Calculate the scale
|
||||
- Determine increment
|
||||
- Draw min label
|
||||
- Draw max label
|
||||
- Draw increment
|
||||
- Plot the points.
|
||||
- ...
|
||||
- Move to coord
|
||||
- Add marker
|
||||
|
||||
6
poetry.lock
generated
6
poetry.lock
generated
@@ -342,13 +342,13 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "sphinx"
|
||||
version = "7.1.1"
|
||||
version = "7.1.2"
|
||||
description = "Python documentation generator"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "sphinx-7.1.1-py3-none-any.whl", hash = "sha256:4e6c5ea477afa0fb90815210fd1312012e1d7542589ab251ac9b53b7c0751bce"},
|
||||
{file = "sphinx-7.1.1.tar.gz", hash = "sha256:59b8e391f0768a96cd233e8300fe7f0a8dc2f64f83dc2a54336a9a84f428ff4e"},
|
||||
{file = "sphinx-7.1.2-py3-none-any.whl", hash = "sha256:d170a81825b2fcacb6dfd5a0d7f578a053e45d3f2b153fecc948c37344eb4cbe"},
|
||||
{file = "sphinx-7.1.2.tar.gz", hash = "sha256:780f4d32f1d7d1126576e0e5ecc19dc32ab76cd24e950228dcf7b1f6d3d9e22f"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
|
||||
Reference in New Issue
Block a user