Re: plot map wit box axes
On Friday, December 22, 2017 at 3:42:58 PM UTC, [email protected] wrote: > Hi, > > I use the PYTHON and IDL. In IDL I can plot a grid map like a this > figure (mapa.png). Please, I would like know how can I plot my figure > using PYTHON with the box around the figure. Like this that I plot using > the IDL. > > Thanks Sorry but we can't see the image as it gets stripped off this text only mailing list. What are you using to do the plot, matplotlib or smething else? Can you show us the code you've used or your interactive session in IDLE? -- Kindest regards. Mark Lawrence. -- https://mail.python.org/mailman/listinfo/python-list
Anaconda Navigator : Add App
How to add apps to the navigator or which apps are available to be installed? Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: acircle.getCenter() to (x,y) coordinates in Python
On 2017-12-24 02:31, G Yu wrote: But your code has: moving_circle.move(P_to_R/P_to_E, E_to_R/P_to_E) so won't that move the circle and change what: moving_circle.getCenter() returns? Yes, moving the circle changes the value of moving_circle.getCenter(). The problem is interpreting the output. The command gives , and I don't know how to determine the x-coordinate of the center from that output. This is my problem. I can't translate the .getCenter() output to Cartesian coordinates. The initial point won't change, but that's just where the circle was originally. Are you sure that it doesn't change? Have you printed out moving_circle.getCenter().getX() and moving_circle.getCenter().getY() and seen that they aren't changing? Distinguish between the circle's center and the initial center point I declared. My program can output the former, but it's in a format that I don't understand: . As for the initial center point (I'll call it moving_circle_*initial*_center instead), it won't change at all throughout the program execution. I need to know the x- and y-coordinates of moving_circle.getCenter() at any point in time. I can't use the center of the circle *before* it started moving, because that value is static (in other words, moving_circle_initial_center.getX() and moving_circle_initial_center.getY() never change). I have already told you how to get the x and y coordinates. moving_circle.getCenter() returns the centre as a Point object. That Point object has .getX() and .getY() methods, which return the x and y coordinates respectively. -- https://mail.python.org/mailman/listinfo/python-list
Re: plot map wit box axes
> On Dec 23, 2017, at 3:27 PM, [email protected] wrote: > > On Friday, December 22, 2017 at 3:42:58 PM UTC, [email protected] wrote: >> Hi, >> >> I use the PYTHON and IDL. In IDL I can plot a grid map like a this >> figure (mapa.png). Please, I would like know how can I plot my figure >> using PYTHON with the box around the figure. Like this that I plot using >> the IDL. >> >> Thanks > > Sorry but we can't see the image as it gets stripped off this text only > mailing list. What are you using to do the plot, matplotlib or smething > else? Can you show us the code you've used or your interactive session in > IDLE? > I’m 90% sure the OP really meant IDL, not IDLE. IDL (Interactive Data Language) is a long-time competitor to MatLab, and is widely used in various parts of the scientific community. (Don’t know if it is still true, but for years ALL the published images from the Hubble telescope had been processed through IDL.) Bill > -- > Kindest regards. > > Mark Lawrence. > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: What is the meaning of @@?
See for example this file. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano wrote: > On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: > >> Hi, I only can find the doc for @. What does @@ mean in python? > > I don't think that @@ means anything yet. > > There was a proposal to use @@ for matrix exponentiation in Numpy, as @ is > used for matrix multiplication, but that was left on hold to see whether it > is really needed or not. > > Where did you find @@ in Python? > > > (By the way, @ for matrix multiplication only works in Python 3.5 or better.) > > https://www.python.org/dev/peps/pep-0465/ > > > > -- > Steve > “Cheer up,” they said, “things could be worse.” So I cheered up, and sure > enough, things got worse. > > -- > https://mail.python.org/mailman/listinfo/python-list -- Regards, Peng -- https://mail.python.org/mailman/listinfo/python-list
Re: What is the meaning of @@?
On Sun, Dec 24, 2017 at 7:33 PM, Peng Yu wrote: > See for example this file. > > https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py > > On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano > wrote: >> On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: >> >>> Hi, I only can find the doc for @. What does @@ mean in python? The examples there occur inside of a doc string, so that's not Python. It's part of the syntax of whatever software is used to generate the documentation for that code. -- https://mail.python.org/mailman/listinfo/python-list
Re: What is the meaning of @@?
On 12/24/17 8:33 PM, Peng Yu wrote: See for example this file. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/rnn_cell.py On Sat, Dec 23, 2017 at 12:03 AM, Steve D'Aprano wrote: On Sat, 23 Dec 2017 04:38 pm, Peng Yu wrote: Hi, I only can find the doc for @. What does @@ mean in python? I don't think that @@ means anything yet. There was a proposal to use @@ for matrix exponentiation in Numpy, as @ is used for matrix multiplication, but that was left on hold to see whether it is really needed or not. Where did you find @@ in Python? (By the way, @ for matrix multiplication only works in Python 3.5 or better.) https://www.python.org/dev/peps/pep-0465/ -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.python.org/mailman/listinfo/python-list Note, the @@ is inside a triple quoted string, so this is just part of a multi-line string. -- Richard Damon -- https://mail.python.org/mailman/listinfo/python-list
Re: acircle.getCenter() to (x,y) coordinates in Python
Ah, I get it now. I have to store the acircle.getCenter() in a point Point, and then access Point.getX() and Point.getY() separately. It was just that middle step that I was missing. Thanks so much! -- https://mail.python.org/mailman/listinfo/python-list
