On Wed, Jul 22, 2009 at 11:19 AM, Ethan Van Andel<evlu...@gmail.com> wrote: > > In list_plot there's some confusion with the pointsize and thickness > keyword arguments. > > These 2 commands run just fine. > list_plot([(0,0),(1,1)],thickness = 20,plotjoined = true) > list_plot([(0,0),(1,1)],pointsize = 20,plotjoined = false) > > This one runs but ignores thickness and gives you a warning saying > that it is ignoring thickness. > list_plot([(0,0),(1,1)],thickness = 20,plotjoined = false) > > This one doesn't run at all but gives you an invalid option error. > > This behavior is needlessly finnicky, especially when writing > functions that call list_plot with user supplied parameters. For > example, this method would fail half of the time. > > def foo(size,joined): > return list_plot(mydata,pointsize = size, plotjoined = joined) > > My first thought for a fix was to make the arguments interchangable, > ie thickness = 5 and pointsize = 5 would do the same thing in both > joined and discrete plots. However, they don't actually behave the > same. For example, the line drawn with thickness = 20 is much thicker > than a point with pointsize = 20. Therefore, if they were to be merged > in some way what would be the best way to go about it?
I have always found the value of pointsize to be very mysterious. I wonder if we could make it so pointsize=20 and thickness=20 are the same. This would of course break all existing use of pointsize, but at least it would make sense. I have heard many people chuckle when wondering what the pointsize units are. By the way, the Sage graphics API is supposed to be similar to Mathematica's. What does pointsize do there? -- William > > Ethan Van Andel > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---