×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

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

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

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

(OP)
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.....

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close