-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change path of html file ? #23
Comments
Sorry it took so long to get back. I missed the question. I think you can do:
If not, let me know. |
julia> open_url("C:/Users/SAMSUNG2/AppData/Local/Temp/jul34FA.tmp.html") but it nis no importan now, my problem is: Paul for example |
Small corect: |
A few things to try:
|
ERROR: julia> using GoogleCharts julia> chart = plot(sin, 0, 2pi); <script> function load_chart_google_chart_9719877101() { var google_chart_9719877101_data = new google.visualization.DataTable();google_chart_9719877101_data.addColumn("nu mber", "x");google_chart_9719877101_data.addColumn("number", "y");google_chart_9719877101_data.addRows([[0.0, 0.0] , [0.025233675932448137, 0.02523099814262444], [0.05046735186489627, 0.050445931592278684], [0.07570102779734442, 0.0756287458844567], [0.10093470372979255, 0.10076340700506825], [0.12616837966224068, 0.12583391159936969], [0.15 140205559468883, 0.15082429716137383], [0.17663573152713696, 0.17571865219725105], [0.2018694074595851, 0.20050112 635625097], [0.22710308339203322, 0.22515594052269397], [0.25233675932448135, 0.2496673968626068], [0.277570435256 92954, 0.27401988881860617], [0.30280411118937767, 0.29819791104666543], [0.32803778712182574, 0.3221860692884393] , [0.3532714630542739, 0.34596909017285876], [0.37850513898672206, 0.36953183094075687], [0.4037388149191702, 0.39 285928908633383], [0.42897249085161837, 0.4159366119093213], [0.45420616678406645, 0.4387491059717651], [0.4794398 4271651463, 0.4612822464534057], [0.5046735186489627, 0.4835216863996972], [0.5299071945814109, 0.5054532658565808 ], [0.5551408705138591, 0.5270630208861916], [0.5803745464463071, 0.5483371924577632], [0.6056082223787553, 0.5692 62235208066], [0.6308418983112034, 0.5898248260658018], [0.6560755742436515, 0.6100118727344657], [0.6813092501760 998, 0.6298105220282713], [0.7065429261085479, 0.6492081680558328], [0.731776602040996, 0.6681924602463959], [0.75 70102779734441, 0.6867513112135011], [0.7822439539058922, 0.70487290445108], [0.8074776298383404, 0.72254570185707 88], [0.8327113057707886, 0.7397584510798209], [0.8579449817032367, 0.7565001926824311], [0.8831786576356848, 0.77 27602671207603], [0.9084123335681329, 0.7885283215303658], [0.933646009500581, 0.8037943163182281], [0.95887968543 30293, 0.8185485315550061], [0.9841133613654774, 0.832781573163761], [1.0093470372979254, 0.8464843789012082], [1. 0345807132303737, 0.8596482241276903], [1.0598143891628218, 0.8722647273621937], [1.08504806509527, 0.884325855618 8787], [1.1102817410277181, 0.8958239295217159], [1.1355154169601662, 0.9067516281939826], [1.1607490928926143, 0. 917101993919498], [1.1859827688250624, 0.9268684365726326], [1.2112164447575107, 0.9360447378142728], [1.236450120 6899587, 0.9446250550510649], [1.2616837966224068, 0.952603925155422], [1.286917472554855, 0.9599762679439228], [1 .312151148487303, 0.9667373894118867], [1.3373848244197513, 0.9728829847220697], [1.3626185003521996, 0.9784091409 455727], [1.3878521762846476, 0.9833123395532226], [1.4130858522170957, 0.9875894586558354], [1.4383195281495438, 0.9912377749919373], [1.463553204081992, 0.9942549656616788], [1.4887868800144402, 0.9966391096058345], [1.5140205 559468882, 0.9983886888289513], [1.5392542318793363, 0.9995025893658627], [1.5644879078117844, 0.9999801019909555] , [1.5897215837442324, 0.9998209226697378], [1.6149552596766807, 0.9990251527524177], [1.640188935609129, 0.997593 2989093745], [1.6654226115415771, 0.995526272808559], [1.6906562874740254, 0.9928253905350295], [1.715889963406473 5, 0.9894923717529955], [1.7411236393389216, 0.9855293386108992], [1.7663573152713696, 0.9809388143902331], [1.791 5909912038177, 0.9757237218989561], [1.8168246671362658, 0.9698873816105272], [1.8420583430687139, 0.9634335095497 458], [1.867292019001162, 0.9563662149267405], [1.8925256949336104, 0.9486899975206164], [1.9177593708660585, 0.94 04097448144256], [1.9429930467985066, 0.9315307288832834], [1.968226722730955, 0.9220586030376136], [1.99346039866 3403, 0.9119993982236605], [2.018694074595851, 0.9013595191835574], [2.043927750528299, 0.8901457403773967], [2.06 91614264607474, 0.8783652016699011], [2.0943951023931953, 0.8660254037844387], [2.1196287783256436, 0.853134203527 2768], [2.144862454258092, 0.8396998087851179], [2.17009613019054, 0.8257307732991005], [2.195329806122988, 0.8112 359912185924], [2.2205634820554363, 0.7962246914382438], [2.245797157987884, 0.7807064317219096], [2.2710308339203 324, 0.7646910926171746], [2.2962645098527803, 0.7481888711643656], [2.3214981857852286, 0.7312102744040465], [2.3 467318617176764, 0.7137661126871392], [2.3719655376501247, 0.6958674927919213], [2.397199213582573, 0.677525810852 2906], [2.4224328895150213, 0.6587527451017937], [2.4476665654474696, 0.6395602484380403], [2.4729002413799175, 0. 6199605408122387], [2.498133917312366, 0.5999661014486956], [2.5233675932448136, 0.5795896608992378], [2.548601269 177262, 0.5588441929376095], [2.57383494510971, 0.5377429062990123], [2.599068621042158, 0.5162992362700406], [2.6 24302296974606, 0.49452683613437515], [2.6495359729070547, 0.4724395684796709], [2.6747696488395025, 0.45005149637 118813], [2.700003324771951, 0.4273768743977685], [2.725237000704399, 0.4044301395958768], [2.750470676636847, 0.3 812259022574717], [2.7757043525692953, 0.3577789366275641], [2.800938028501743, 0.33410417149738997], [2.826171704 4341914, 0.31021668069917696], [2.8514053803666393, 0.286131673508569], [2.8766390562990876, 0.26186448496080694], [2.901872732231536, 0.23743056608684404], [2.927106408163984, 0.21284547407560114], [2.952340084096432, 0.1881248 6236863396], [2.9775737600288803, 0.16328447069351248], [3.0028074359613286, 0.1383401150422667], [3.0280411118937 764, 0.11330767760127002], [3.0532747878262247, 0.08820309663897652], [3.0785084637586726, 0.06304235635795515], [ 3.103742139691121, 0.03784147671767042], [3.1289758156235687, 0.012616503234503999], [3.1542094915560175, -0.01261 6503234503753], [3.179443167488465, -0.037841476717669735], [3.2046768434209136, -0.0630423563579549], [3.22991051 93533615, -0.08820309663897628], [3.25514419528581, -0.11330767760126977], [3.280377871218258, -0.1383401150422669 ], [3.305611547150706, -0.16328447069351223], [3.3308452230831542, -0.1881248623686337], [3.356078899015602, -0.21 284547407560092], [3.381312574948051, -0.23743056608684424], [3.4065462508804982, -0.2618644849608063], [3.4317799 26812947, -0.2861316735085688], [3.4570136027453944, -0.3102166806991763], [3.482247278677843, -0.3341041714973897 5], [3.507480954610291, -0.3577789366275639], [3.5327146305427393, -0.3812259022574715], [3.5579483064751876, -0.4 0443013959587704], [3.5831819824076354, -0.4273768743977683], [3.6084156583400837, -0.4500514963711879], [3.633649 3342725316, -0.47243956847967067], [3.6588830102049803, -0.4945268361343749], [3.6841166861374277, -0.516299236270 04], [3.7093503620698765, -0.5377429062990121], [3.734584038002324, -0.5588441929376089], [3.7598177139347726, -0. 5795896608992377], [3.785051389867221, -0.5999661014486958], [3.8102850657996687, -0.6199605408122385], [3.8355187 41732117, -0.6395602484380404], [3.860752417664565, -0.6587527451017935], [3.885986093597013, -0.6775258108522905] , [3.911219769529461, -0.6958674927919207], [3.93645344546191, -0.7137661126871391], [3.961687121394357, -0.731210 2744040461], [3.986920797326806, -0.7481888711643655], [4.012154473259254, -0.7646910926171745], [4.03738814919170 2, -0.7807064317219091], [4.06262182512415, -0.7962246914382439], [4.087855501056598, -0.8112359912185922], [4.113 089176989047, -0.8257307732991008], [4.138322852921495, -0.839699808785118], [4.163556528853943, -0.85313420352727 66], [4.1887902047863905, -0.8660254037844385], [4.214023880718839, -0.8783652016699012], [4.239257556651287, -0.8 901457403773966], [4.264491232583735, -0.9013595191835572], [4.289724908516184, -0.9119993982236606], [4.314958584 448632, -0.9220586030376136], [4.34019226038108, -0.9315307288832835], [4.365425936313527, -0.9404097448144254], [ 4.390659612245976, -0.9486899975206164], [4.415893288178424, -0.9563662149267403], [4.441126964110873, -0.96343350 95497458], [4.4663606400433205, -0.9698873816105272], [4.491594315975768, -0.975723721898956], [4.516827991908216, -0.980938814390233], [4.542061667840665, -0.9855293386108992], [4.567295343773113, -0.9894923717529955], [4.59252 9019705561, -0.9928253905350294], [4.617762695638009, -0.995526272808559], [4.642996371570457, -0.9975932989093745 ], [4.668230047502906, -0.9990251527524177], [4.693463723435353, -0.9998209226697378], [4.718697399367802, -0.9999 801019909555], [4.7439310753002495, -0.9995025893658627], [4.769164751232698, -0.9983886888289513], [4.79439842716 5146, -0.9966391096058345], [4.819632103097594, -0.9942549656616788], [4.844865779030043, -0.9912377749919373], [4 .8700994549624905, -0.9875894586558354], [4.895333130894939, -0.9833123395532226], [4.920566806827386, -0.97840914 09455729], [4.945800482759835, -0.9728829847220697], [4.971034158692283, -0.9667373894118869], [4.996267834624732, -0.9599762679439228], [5.021501510557179, -0.9526039251554221], [5.046735186489627, -0.944625055051065], [5.07196 8862422076, -0.9360447378142727], [5.097202538354524, -0.9268684365726327], [5.122436214286972, -0.917101993919498 1], [5.14766989021942, -0.9067516281939829], [5.172903566151868, -0.8958239295217159], [5.198137242084316, -0.8843 258556188788], [5.223370918016765, -0.8722647273621936], [5.248604593949212, -0.8596482241276907], [5.273838269881 661, -0.8464843789012084], [5.299071945814109, -0.8327815731637608], [5.324305621746557, -0.8185485315550061], [5. 349539297679005, -0.8037943163182283], [5.374772973611453, -0.7885283215303662], [5.400006649543902, -0.7727602671 207603], [5.4252403254763495, -0.7565001926824313], [5.450474001408798, -0.7397584510798206], [5.475707677341245, -0.7225457018570794], [5.500941353273694, -0.7048729044510802], [5.526175029206142, -0.6867513112135014], [5.55140 87051385905, -0.6681924602463958], [5.576642381071038, -0.649208168055833], [5.601876057003486, -0.629810522028271 6], [5.627109732935935, -0.6100118727344657], [5.652343408868383, -0.589824826065802], [5.677577084800831, -0.5692 622352080664], [5.7028107607332785, -0.5483371924577639], [5.728044436665727, -0.5270630208861917], [5.75327811259 8175, -0.5054532658565812], [5.778511788530624, -0.48352168639969717], [5.803745464463072, -0.4612822464534058], [ 5.82897914039552, -0.43874910597176553], [5.854212816327968, -0.4159366119093211], [5.879446492260416, -0.39285928 908633394], [5.904680168192864, -0.36953183094075726], [5.929913844125312, -0.3459690901728594], [5.95514752005776 1, -0.3221860692884394], [5.9803811959902085, -0.2981979110466658], [6.005614871922657, -0.2740198888186059], [6.0 30848547855104, -0.24966739686260775], [6.056082223787553, -0.22515594052269433], [6.081315899720002, -0.200501126 35625073], [6.1065495756524495, -0.17571865219725105], [6.131783251584897, -0.15082429716137413], [6.1570169275173 45, -0.1258339115993703], [6.182250603449794, -0.10076340700506824], [6.207484279382242, -0.07562874588445698], [6 .23271795531469, -0.050445931592279246], [6.2579516312471375, -0.025230998142625288], [6.283185307179586, -2.44929 35982947064e-16]]); var google_chart_9719877101_options = {"curveType":"function","title":"Line chart"}; var google_chart_9719877101_chart = new google.visualization.LineChart(document.getElementById('google_chart_97198 77101'));google_chart_9719877101_chart.draw(google_chart_9719877101_data, google_chart_9719877101_options); } setTimeout(function(){ google.load('visualization', '1', { 'callback':load_chart_google_chart_9719877101, 'packages':['corechart'] } )}, 10); </script>julia> fname = "test.html" julia> render(fname, chart) Paul |
Okay, I'm guessing I had some local changes that caused this. I just pushed changes to METADATA. Try pkg.update() and then giving it a go again. |
Thx, is ok for 100pi and lower , but a cant undestend way some of maximas julia> chart = plot(sin, 0, 150pi); julia> render(fname, chart) are low ten "1" , graph is not regular ... lik sum of nonharmonic ... try this html <script type="text/javascript"src="https://www.google.com/jsapi "></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"] }); google.setOnLoadCallback(drawChart); function drawChart() {
Paul W dniu 2015-01-18 o 17:28, john verzani pisze:
|
This is because the plot function only samples 250 regularly spaced points plot(sin, 0, 249pi) Look at the maximum values which all should be 0, but aren't due to plot(sinpi, 0, 249) |> render If you wanted to plot such oscillatory functions you are going to have a n = 1000 ## not 250 xs = linspace(a, float(b), n) ys = map(f, xs) ys[ ys.== Inf] = NaN d = DataFrame(x=xs,y=ys) chart = line_chart(d, merge(args, [:curveType => "function"]), nothing, If you have the packages installed (or use juliabox) you can try this to using Gadfly, Interact @manipulate for n=1:500
end On Sun, Jan 18, 2015 at 11:50 AM, paulanalyst [email protected]
John Verzani |
HI, Package is very usefull !
after
render(chart)
my html file is in localistaion :
file:///C:/Users/SAMSUNG2/AppData/Local/Temp/jul3C6B.tmp.html
How to change path? Any options?
Paul ?
The text was updated successfully, but these errors were encountered: