Hi all I'm noob on matplotlib on python
and I need to do excel graphic like (model.jpg) that I send attached. I send it too my test code for that My problem is to set the values on y and x axis how I do it? thanks in advanced
# -*- coding: utf-8 -*-
from decimal import Decimal
y=[Decimal('0.3041997084285048793446312110'),
Decimal('0.3041811120982812429734672735'),
Decimal('0.3041586008929715390350375366'),
Decimal('0.3041326478700651884918449742'),
Decimal('0.3041035792459110687414956042'),
Decimal('0.3040716389305317969883516979'),
Decimal('0.3040370190056943726355391828'),
Decimal('0.3039998763354236109640693846'),
Decimal('0.3039603425231051434729103751'),
Decimal('0.3039185303035350714640090501'),
Decimal('0.3038745378649594754802712117'),
Decimal('0.3038284518931050349228492634'),
Decimal('0.3037303013157358388145146537'),
Decimal('0.3036783698876388202495693043'),
Decimal('0.3036246135388058002644503367'),
Decimal('0.3035690857187649546055776374'),
Decimal('0.3035118359225733232985072989'),
Decimal('0.3034529102064387430820630960'),
Decimal('0.3027798308296002483823593898'),
Decimal('0.3019747799126658047321072371'),
Decimal('0.3010595626751769086882851904'),
Decimal('0.3000504843910340202763428443'),
Decimal('0.2989606698104426040434113406'),
Decimal('0.2978011455914110301509835818'),
Decimal('0.2965814242208845926010044833'),
Decimal('0.2953098521515828700938805931'),
Decimal('0.2939938339016535952485540052'),
Decimal('0.2926399857027685846714651451'),
Decimal('0.2912542467050261664773915582'),
Decimal('0.2898419633541847137900856664'),
Decimal('0.2884079560914847679054444372'),
Decimal('0.2869565739529259676416421710'),
Decimal('0.2854917405773616724446679145'),
Decimal('0.2840169938920561838932972437'),
Decimal('0.2825355209776950316856977412'),
Decimal('0.2810501891298752300565699492'),
Decimal('0.2530398800717247021535893133'),
Decimal('0.2309593282901911270323471566'),
Decimal('0.2142248288114558358413671724'),
Decimal('0.2013198591032495347111055987'),
Decimal('0.1911048080932635279916693404'),
Decimal('0.1828168101439619902156148570'),
Decimal('0.1759472033051957360143949273'),
Decimal('0.1701494956228995244136332946'),
Decimal('0.1651812738049817427569102300'),
Decimal('0.1480327912592802041987336541'),
Decimal('0.1377158741268375390344888336'),
Decimal('0.1306910617724526170054856744'),
Decimal('0.1255330889933308327695803461'),
Decimal('0.1215487905337388255028562821'),
Decimal('0.1183569033660768681595931242'),
Decimal('0.1157287111457510779727799369'),
Decimal('0.1135178566558123755075563813'),
Decimal('0.1116258850568561542189771708'),
Decimal('0.1099838725178337221454044654'),
Decimal('0.1085419726700384590105347580'),
Decimal('0.1072631467404932434072879819'),
Decimal('0.1061192356086297651474504552'),
Decimal('0.1050884072158080865363934958'),
Decimal('0.1043334716140861254810893687'),
Decimal('0.1033005693930824423996036004'),
Decimal('0.1025186055369403393962066223'),
Decimal('0.1017983854707960971280910413'),
Decimal('0.09940010650120277239400512213'),
Decimal('0.09755584274949988113748876745'),
Decimal('0.09608280592970019748916863039'),
Decimal('0.09487248638771297021511871199'),
Decimal('0.09385595137090260551637864016'),
Decimal('0.09298707461257284768573005693'),
Decimal('0.09223369403246902869720064622'),
Decimal('0.09157262184937054787957562771'),
Decimal('0.09098667068685246134841009967'),
Decimal('0.09046279979357594355255331919'),
Decimal('0.08999091520111926307741922487'),
Decimal('0.08956306789557021895282081016'),
Decimal('0.08917290300510101286609973635'),
Decimal('0.08881527223605659165755623012'),
Decimal('0.08839214273205423057465385692'),
Decimal('0.08818145632861301828547916695'),
Decimal('0.08789885141864609564589281926'),
Decimal('0.08763567457015281090584469616'),
Decimal('0.08738982949516953082784067755'),
Decimal('0.08715952155240858367614678101'),
Decimal('0.08694320432541564991702617169'),
Decimal('0.08673953730326870462655463881'),
Decimal('0.08654735203979727709035602654'),
Decimal('0.08636562485710431638877620200'),
Decimal('0.08619345465056452099941506608'),
Decimal('0.08603004470711568574821284350'),
Decimal('0.08587468770771509864601566552'),
Decimal('0.08572675327619531920987689779'),
Decimal('0.08558567757959197545385559924'),
Decimal('0.08545095459267629930008504016'),
Decimal('0.08532212872131176389071802292'),
Decimal('0.08519878854207047655135178819'),
Decimal('0.08508056146411939254364355471'),
Decimal('0.08496710915723189654691208846'),
Decimal('0.08485812361947675422749917393'),
Decimal('0.08475332378159534560914071150'),
Decimal('0.08465245256372754764842491632'),
Decimal('0.08455527431506202470084773481'),
Decimal('0.08446157257898387425834816114'),
Decimal('0.08437114813599492559990198572'),
Decimal('0.08428381728456899879544582613'),
Decimal('0.08419941032654730116548635256'),
Decimal('0.08411777022896698490334200456'),
Decimal('0.08403875143857520858918587966'),
Decimal('0.08396221882889025972553278686'),
Decimal('0.08386262232372649278629223114'),
Decimal('0.08361273883882196959916333934'),
Decimal('0.08345608379673519958423317571'),
Decimal('0.08330974744282251919370920665'),
Decimal('0.08317266107334228418049993152'),
Decimal('0.08304390383855027008163486326'),
Decimal('0.08292267752867770304037472628'),
Decimal('0.08280828641286421725419676540'),
Decimal('0.08270012097797205558855339636'),
Decimal('0.08256793883349254633032840545'),
Decimal('0.08255838341506859117962741714')]
x=[Decimal('0.010000000000'), Decimal('0.015000000000'),
Decimal('0.020000000000'), Decimal('0.025000000000'),
Decimal('0.030000000000'), Decimal('0.035000000000'),
Decimal('0.040000000000'), Decimal('0.045000000000'),
Decimal('0.050000000000'), Decimal('0.055000000000'),
Decimal('0.060000000000'), Decimal('0.065000000000'),
Decimal('0.075000000000'), Decimal('0.080000000000'),
Decimal('0.085000000000'), Decimal('0.090000000000'),
Decimal('0.095000000000'), Decimal('0.100000000000'),
Decimal('0.150000000000'), Decimal('0.200000000000'),
Decimal('0.250000000000'), Decimal('0.300000000000'),
Decimal('0.350000000000'), Decimal('0.400000000000'),
Decimal('0.450000000000'), Decimal('0.500000000000'),
Decimal('0.550000000000'), Decimal('0.600000000000'),
Decimal('0.650000000000'), Decimal('0.700000000000'),
Decimal('0.750000000000'), Decimal('0.800000000000'),
Decimal('0.850000000000'), Decimal('0.900000000000'),
Decimal('0.950000000000'), Decimal('1.000000000000'),
Decimal('2.000000000000'), Decimal('3.000000000000'),
Decimal('4.000000000000'), Decimal('5.000000000000'),
Decimal('6.000000000000'), Decimal('7.000000000000'),
Decimal('8.000000000000'), Decimal('9.000000000000'),
Decimal('10.000000000000'), Decimal('15.000000000000'),
Decimal('20.000000000000'), Decimal('25.000000000000'),
Decimal('30.000000000000'), Decimal('35.000000000000'),
Decimal('40.000000000000'), Decimal('45.000000000000'),
Decimal('50.000000000000'), Decimal('55.000000000000'),
Decimal('60.000000000000'), Decimal('65.000000000000'),
Decimal('70.000000000000'), Decimal('75.000000000000'),
Decimal('80.000000000000'), Decimal('84.000000000000'),
Decimal('90.000000000000'), Decimal('95.000000000000'),
Decimal('100.000000000000'), Decimal('120.000000000000'),
Decimal('140.000000000000'), Decimal('160.000000000000'),
Decimal('180.000000000000'), Decimal('200.000000000000'),
Decimal('220.000000000000'), Decimal('240.000000000000'),
Decimal('260.000000000000'), Decimal('280.000000000000'),
Decimal('300.000000000000'), Decimal('320.000000000000'),
Decimal('340.000000000000'), Decimal('360.000000000000'),
Decimal('380.000000000000'), Decimal('406.000000000000'),
Decimal('420.000000000000'), Decimal('440.000000000000'),
Decimal('460.000000000000'), Decimal('480.000000000000'),
Decimal('500.000000000000'), Decimal('520.000000000000'),
Decimal('540.000000000000'), Decimal('560.000000000000'),
Decimal('580.000000000000'), Decimal('600.000000000000'),
Decimal('620.000000000000'), Decimal('640.000000000000'),
Decimal('660.000000000000'), Decimal('680.000000000000'),
Decimal('700.000000000000'), Decimal('720.000000000000'),
Decimal('740.000000000000'), Decimal('760.000000000000'),
Decimal('780.000000000000'), Decimal('800.000000000000'),
Decimal('820.000000000000'), Decimal('840.000000000000'),
Decimal('860.000000000000'), Decimal('880.000000000000'),
Decimal('900.000000000000'), Decimal('920.000000000000'),
Decimal('940.000000000000'), Decimal('960.000000000000'),
Decimal('980.000000000000'), Decimal('1000.000000000000'),
Decimal('1027.000000000000'), Decimal('1100.000000000000'),
Decimal('1150.000000000000'), Decimal('1200.000000000000'),
Decimal('1250.000000000000'), Decimal('1300.000000000000'),
Decimal('1350.000000000000'), Decimal('1400.000000000000'),
Decimal('1450.000000000000'), Decimal('1515.000000000000'),
Decimal('1519.875000000000')]
from matplotlib import pyplot as pp
pp.plot(x,y)
pp.xlabel('h')
pp.ylabel('q')
pp.show()<<attachment: model.jpg>>
------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
