Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to show different graphs by selecting option in combobox....

Status
Not open for further replies.

bhavanasi

Programmer
Jan 6, 2011
11
IN
i stuck in the middle of my program to show different graphss..am using "matplotlib" for plotting the graphsss...whats my doubt isss....

i have different options in combobox.as "throughput","delay","packetloss"

when i select the option it can calculate regarding values and getting the points for x-axis and y-axis..and am able to show that graph alsoo.

if i changed the option ,am able to get x-axis and y-axis values also..but to plot the graph it is not displaying....


part of my program isssssssssss




if Combobox.GetValue=="throughput":
Xaxis=Throughput_Xaxis
Yaxis=Throughput_Yaxis
else:
if Combobox.GetValue=="packetloss":
Xaxis=Packetloss_Xaxis
Yaxis=Packetloss_Yaxis
else:
Xaxis=Delay_Xaxis
Yaxis=Delay_Yaxis

plot(Xaxis,Yaxis)
show()


it is showing one graph at a time....for displaying another graph i need to run the same program in one more time and need to select another option in the combobox...

how can i solve my problem to show differnt graphs ...by selecting the optionss...

please help meee..thanks in advance.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top