473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

negative values on polar plot (decibels polar plots )


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 [-50]
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
import wx
import os
from wx.lib.colourdb import *
from pylab import*
angteta = [ 4.36332313e-003, 3.18522588e-001, 6.32681854e-001,
9.46841119e-001,
1.26100038e+000, 1.57515965e+000, 1.88931892e+000,
2.20347818e+000,
2.51763745e+000, 2.83179671e+000, 3.14595598e+000,
3.46011524e+000,
3.77427451e+000, 4.08843377e+000, 4.40259304e+000,
4.71675230e+000,
5.03091157e+000, 5.34507083e+000, 5.65923010e+000,
5.97338936e+000,]

voltage = [ 0.00363471, 0.26569155, 0.52562334, 0.76330428,
0.93673361, 1. ,
0.93321713, 0.75733232, 0.5185449 , 0.25840091,
0.00363471, 0.26569155,
0.52562334, 0.76330428, 0.93673361, 1. ,
0.93321713, 0.75733232,
0.5185449 , 0.25840091,]

#voltagedb = 20*log10(voltage)
voltagedb = [-48.7906044 ,-11.51244516, -5.58650713, -2.34604603,
-0.56767793, 0. ,
-0.60034598, -2.41427014,
-5.7042726 ,-11.75411924,-48.7906044 ,
-11.51244516, -5.58650713, -2.34604603, -0.56767793,
0. ,
-0.60034598, -2.41427014, -5.7042726 ,-11.75411924,]
polar(angteta,voltagedb)

show()

Aug 14 '07 #1
0 1147

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

Similar topics

2
by: ¶}¾Ç¤F¶Ü? | last post by:
I'm trying to write a script to pass a file of stock prices and volumes, and plot the results on a gnuplot graph which is non-overlapped graph. Fig. 1 ------------ Fig. 2 Figure 1 is a graph...
30
by: nephish | last post by:
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working...
8
by: Derek Basch | last post by:
Can anyone give any suggestions on how to make a logarithmic (base 10) x and y axis (loglog) plot in matplotlib? The scatter function doesn't seem to have any log functionality built into it. ...
0
by: toton | last post by:
Hi, for my project I needs a few plots to visualize the data (mostly x-y plot) . Most of the existing plotting library either copy the data and do plotting, or takes a data pointer to an 2d x-y...
3
by: Sebastian Bassi | last post by:
Hello, Is there a graphic package for Python that provides support for box plots? (see http://en.wikipedia.org/wiki/Box_plot and http://en.wikipedia.org/wiki/Image:R-speed_of_light_boxplot.png...
3
by: yadin | last post by:
hi! how can i do polar plot in python with negative axes that is the value of the magnitude is negative
2
by: Bigbadbradezee | last post by:
in matplot lib how do I generate two separate windows for separate plots. ie i have two contour plots i want to print out every time a program is run, but in separate windows. ...
2
by: itdevries | last post by:
Hi, I've been looking for a basic c++ 2D plot library to use with windows (and visual studio). I was a bit overwhelmed by all the options I found. Can someone here recommend a basic 2D plot...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.