Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.
The code and results for both strategies are here:
The match_aspect flag only has effect with the ranges are "auto" DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I've been thwarted at every turn.
I've tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn't actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can't get the aspect ratio right.
I don't know if this is a confounding factor, but I'm including a slider (for something I'll be doing later) and I don't know if that's what's screwing things up.
That said with larger radius values it did not seem to auto-range well. (The circle was outside and surrounding the visible view area.) I’d suggest making a GH issue about improving auto-ranging for circles with radius specified:
The match_aspect flag only has effect with the ranges are “auto” DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.
That said with larger radius values it did not seem to auto-range well. (The circle was outside and surrounding the visible view area.) I’d suggest making a GH issue about improving auto-ranging for circles with radius specified:
The match_aspect flag only has effect with the ranges are “auto” DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.
That said with larger radius values it did not seem to auto-range well. (The circle was outside and surrounding the visible view area.) I’d suggest making a GH issue about improving auto-ranging for circles with radius specified:
The match_aspect flag only has effect with the ranges are “auto” DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.
That said with larger radius values it did not seem to auto-range well. (The circle was outside and surrounding the visible view area.) I’d suggest making a GH issue about improving auto-ranging for circles with radius specified:
The match_aspect flag only has effect with the ranges are “auto” DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.
That said with larger radius values it did not seem to auto-range well. (The circle was outside and surrounding the visible view area.) I’d suggest making a GH issue about improving auto-ranging for circles with radius specified:
The match_aspect flag only has effect with the ranges are “auto” DataRange1d ranges. These are the default. In that case Bokeh will adjust the data space range boundaries as necessary to maintain aspect that matches the pixel aspect. However, if you explicitly provide range boundaries, as you have done in your code, Bokeh will not override them.
Thanks
Bryan
On Nov 14, 2017, at 12:36, vectortronic <iob…@gmail.com> wrote:
Pardon the noob question, but all I want to do is draw a unit circle with aspect ratio = 1 (so it looks like a circle and not an ellipse). I’ve been thwarted at every turn.
I’ve tried two basic strategies. First is to create a single point at (0,0) and then specify a radius of 1. Unfortunately, this gives me something that looks circular but doesn’t actually reach all the way up and down to y = +/-1. Second strategy is to plot the points (cos(th), sin(th) ) where th is 0 to 360 degrees. The resulting plot looks elliptical because I can’t get the aspect ratio right.
I don’t know if this is a confounding factor, but I’m including a slider (for something I’ll be doing later) and I don’t know if that’s what’s screwing things up.