Matplotlib disappearing plots multiple axis

189 views Asked by At

I am working on a project to graph multiple graphs against a variety of axis. But I am unable to actually render any graphs successfully using the matplotlib guide for how to plot multiple axis in python.

I have already seen the working maptlotlib guide. I am trying to now modify it for my own purposes so I need to know the minimal level of work necessary to make any type of graph display.

Particularly, could someone explain to me what I need to do to make:

from sympy import * 
from matplotlib import pyplot as p #plot system
import numpy as np #for creating arrays fast
from scipy.interpolate import interp1d #for drawing curves between points
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA



transmissionTable1 = {"name":"SidTest" ,"date":"NULL","runID":9999 ,"port":9999, "users":[60,120,240] ,"ROUTING":[0.11, 0.246, 4.096] ,  "Disc01":[0.301,0.639,4.428], "Transaction per Sec":[12.12,23.18,31.81]}

host = host_subplot(111,axes_class=AA.Axes)
p.subplots_adjust(right=0.75)
axialShift = 60

basis = transmissionTable1["users"] #vary by users

t1  = host.twinx()
t2 = host.twinx()

p.plot([1,2,3],[1,2,3])

p.show()

succesfully render the graph of y = x interpolated at x = 1,2,3? Why is the act of creating host.twinx() blocking the ability to render graphs

0

There are 0 answers