brownplt / code.pyret.org

Website for serving Pyret to folks.
Other
24 stars 45 forks source link

Request: New chart type #311

Closed schanzer closed 4 years ago

schanzer commented 5 years ago

There's a strong pedagogical win if we can provide a version of scatter-plot that also consumes a function of type Row -> Image, and uses the generated image in places of the dots in the plot.

blerner commented 5 years ago

Would we rather encourage students to extend their tables (or use build-column), and then have a version of the scatter-plot function that simply takes in a third column to use for images? (Thereby reinforcing existing table mechanisms that we're already teaching, and avoiding a higher-order function that we might not be teaching?)

schanzer commented 5 years ago

Ooooh, I love that. Even better!

shriram commented 5 years ago

Also it's a great suggestion because they can much more easily debug their output. It's like creating an intermediate variable, except one that's completely manifest in the table itself. They can scroll through several rows to make sure they're getting the right image, etc. It fits quite nicely with our testing story: on your "testing" table, scroll and make sure you have the right outputs, only then send this off to work on the "big" table.

jpolitz commented 4 years ago
image