Christopher Tessum

Results 81 comments of Christopher Tessum

One way to compare trends in data sets is to divide the points in each dataset by its average. Then you can plot them both on the same scale. On...

Why not just add the code: ``` go type XYArray struct { X, Y []float64 } func (xy XYArray) Len() int { return len(xy.X) } func (xy XYArray) XY(i int)...

So is the question, then, whether to replace the XYs type with VecXY or XYArray, or whether to replace the XYer interface with a concrete type in function arguments? i.e....

Yes, although I think that supports my point rather than refutes it. Having an interface function argument means that the user can just implement the XYer interface for whatever complicated...

Makes sense to me. On this topic, additionally, I'm somewhat confused regarding what the purpose of the palette.Palette interface is. It only has one method, and the method doesn't take...

I suppose one reason is that without a Palette interface we couldn't have a DivergingPalette. That may be enough to justify it, but it still feels to me like a...

The functions in fmt are set up so they can take either a string or a fmt.Stringer (or anything else). So the existence of fmt.Stringer doesn't prevent people from using...

I think doing it right requires using fonts that include superscript and subscript glyphs. The unicode standard supports superscript and subscript for a small subset of characters (https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts). These characters...

A pull request I'm currently working on has this ability built in for different type of diverging color maps. See [here](https://github.com/gonum/plot/blob/moreland/palette/moreland/smooth.go#L32).

I like this idea, although I'm not a huge fan of using a global variable, as a user may want different precision for different plots or axes. Would it be...