473,910 Members | 4,221 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

negative polar axis

hi!
how can i do polar plot in python with negative axes
that is the value of the magnitude is negative

Aug 13 '07 #1
3 2454
yadin wrote:
hi!
how can i do polar plot in python with negative axes
that is the value of the magnitude is negative
Surely a negative magnitude doesn't make sense in polar coordinates,
since the magnitude is supposed to represent the distance from the center.

About the best interpretation I can think of is to add 180 degrees to
the angle and reverse the sign of the magnitude, but this would be a
hack. Where are those coordinates coming from?

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 13 '07 #2
Steve Holden wrote:
About the best interpretation I can think of is to add 180 degrees to
the angle and reverse the sign of the magnitude, but this would be a
hack. Where are those coordinates coming from?
Well, sometimes in polar coordinates (r, theta), r is allowed to be
negative. The usual translation from polar to Cartesian coordinates
makes this meaningful, albeit weird, so in effect the resulting
positions are just reflections around the origin.

Which I suppose is what the original poster was asking about, but it's
still not clear.

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
The conviction of wisdom is the plague of man.
-- Montaigne
Aug 13 '07 #3
On 10:58 Mon 13 Aug , Erik Max Francis wrote:
Steve Holden wrote:
About the best interpretation I can think of is to add 180 degrees to
the angle and reverse the sign of the magnitude, but this would be a
hack. Where are those coordinates coming from?

Well, sometimes in polar coordinates (r, theta), r is allowed to be
negative. The usual translation from polar to Cartesian coordinates
makes this meaningful, albeit weird, so in effect the resulting
positions are just reflections around the origin.

Which I suppose is what the original poster was asking about, but it's
still not clear.
Many years ago when I started programming machine tools (on punched
paper tape) if you wished to specify a cutter path around a radius as
being more than 180 degrees you programmed it as a negative r value.
There are 2 possible paths from x1y1 to x2y2 along a radius r and going
in the same direction; that less than 180 deg and that more than 180
deg, unless the radius is exactly 180. But this was rarely used, the
other method of specifying the end point as an incremental value in
relation to the radius centre is less error prone when the arcs are
close to 180.

Sorry about the slight diversion but I'm getting nostalgic.

Regards, John
--
War is God's way of teaching Americans geography
Ambrose Bierce (1842 - 1914)
Aug 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1664
by: Google Mike | last post by:
I like PHP a lot. It's my favorite programming language. That's not to say that I'd like to see it grow more or for derivatives to come from it. For me, the ideal programming language would be: * Would take the name of Polar instead of PHP. * Syntacticaly exactly like PHP, but would be much faster on string handling and would swap "." for "->". * Has all the same modules of PHP but would have extremely easy-to-use
1
10253
by: Dave Keays | last post by:
I am setting-up an experimental web service using Apache Axis but I'm having problems. AXIS can't find a library that I've verified exists on my computer and that CLASSPATH points to it. I'm using a simple service for testing purposes (1 string IN, 1 string OUT) and I've found where the exception occures but not why. But I've exhausted my own attempts. I've researched the web for Axis issues and here is a brief description of the...
3
9800
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the response. As a result of seraching news groups I guessed that the SOAP response defines an array element in a way that causes the dotnet deserialization routines to put the content in a generic object array (object) BUT the content is supposed to...
4
13999
by: nawrin22 | last post by:
hi.. I am a niwebie in 'AXIS' . but i had correctly installed it without any problem with the help of 'apache.axis.install.pdf' and also tested the examples under 'samples\userguide' directoy provided with 'AXIS'. Later ,I wanted to run a 'build.xml' file created of my own to run the 'example3' project under a diffrent directory and configured the 'build.xml' accordingly. I succeded but after then .. I could not run any of the...
3
6103
by: Jeremy Chapman | last post by:
I've writtin a very simple web service in axis which returns an array of classes. I consume it in a .net app. When receiving the response, my .net app generates an error "Cannot assign object of type System.Object to an object of type PersonWS.WorkGroupData.". I've included the wsdl of the consumed axis web service, the request/responses of the web service by the .net app and the exception and stack trace. Hoping someone can tell me...
0
2401
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
0
1174
by: yadin | last post by:
hi every one can you please can you help me to fix these polar plot in db's so that the center is at the minimun negative number in voltagedb about and the maximun is at zero how can i see values on the axies like showing that the axes start at -40 -30 .....0 than you
10
9861
by: schaefer.mp | last post by:
Does anyone know of an approximation to raising a negative base to a fractional exponent? For example, (-3)^-4.11111 since this cannot be computed without using imaginary numbers. Any help is appreciated.
3
5272
by: afrogazer | last post by:
I am creating a wind rose using a polar bar plot bu the points do not seem to align to the correct angles. Here is the sample code I am using. I can't seem to see anything in the API on how to set the angles. Any ideas anybody? Thanks. from pylab import *
0
9879
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10921
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11055
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9727
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5939
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6142
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.