How can I change the thickness of points in a graph?
In case it is not clear what I mean, consider the following program, illustrating Chebyshev's bias:
(Sorry, I cannot yet upload graphs, but you may quickly run this example and see that:) The dots seem too thick to rally appreciate any fine features of the graph. Is there a way to make the dots smaller (thinner)?
This isn't an answer to the question -- Shashank already explained that nicely -- but might be helpful anyway. A few points:
The first statement,
Next, you don't actually need to keep track of
As well, you can use "elif:" instead of chaining else/if pairs deeper and deeper. So one way to condense your code would be into:
where I've used the
There are even some slick non-loop-based approaches to getting this, but hopefully this helps. In general, if you find yourself needing to keep track of loop indices manually, there's probably a prettier way to do something.
Asked: Feb 21 '12
Seen: 76 times
Last updated: Feb 21 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.