Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

how to change path of html file ? #23

Open
paulanalyst opened this issue Dec 22, 2014 · 8 comments
Open

how to change path of html file ? #23

paulanalyst opened this issue Dec 22, 2014 · 8 comments

Comments

@paulanalyst
Copy link

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 ?

@jverzani
Copy link
Owner

Sorry it took so long to get back. I missed the question. I think you can do:

render(filename, chart)
open_url(filename)

If not, let me know.

@paulanalyst
Copy link
Author

julia> open_url("C:/Users/SAMSUNG2/AppData/Local/Temp/jul34FA.tmp.html")
ERROR: open_url not defined

but it nis no importan now, my problem is:
How to define your own path and file name of html?
somthing like :
chart = scatter_chart(scatter_data, "my_path/my__file.html")
is posilble this ?
Now is (I thing ) random name of file
file:///C:/Users/SAMSUNG2/AppData/Local/Temp/jul3C6B.tmp.html

Paul

for example

@paulanalyst
Copy link
Author

Small corect:
How to define MY own path and file name of html?
Paul

@jverzani
Copy link
Owner

A few things to try:

  • I haven't exported open_url. Use GoogleCharts.open_url instead
  • try it first without a path, as in test.html. This should work:
chart = plot(sin, 0, 2pi);
fname = "test.html"
render(fname, chart)
GoogleCharts.open_url(fname)
  • Second, try with a path. I think you need the file:/// bit in specifying your path.

@paulanalyst
Copy link
Author

ERROR: render has no method matching render(::ASCIIString, ::Nothing)
like below:
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type "help()" for help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.3.3 (2014-11-23 20:19 UTC)
/ |_'|||__'| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32

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"
"test.html"

julia> render(fname, chart)
ERROR: render has no method matching render(::ASCIIString, ::Nothing)

Paul

@jverzani
Copy link
Owner

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.

@paulanalyst
Copy link
Author

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() {
     var google_chart_1083521101029_data = new google.visualization.DataTable();google_chart_1083521101029_data.addColumn("number", "x");google_chart_1083521101029_data.addColumn("number", "y");google_chart_1083521101029_data.addRows([[0.0, 0.0], [1.89252569493361, 0.9486899975206166], [3.78505138986722, -0.599966101448695], [5.677577084800832, -0.5692622352080656], [7.57010277973444, 0.9599762679439223], [9.462628474668051, -0.03784147671766949], [11.355154169601663, -0.9360447378142724], [13.247679864535272, 0.6298105220282704], [15.14020555946888, 0.5377429062990146], [17.032731254402492, -0.9698873816105269], [18.925256949336102, 0.07562874588445512], [20.817782644269712, 0.9220586030376142], [22.710308339203326, -0.6587527451017949], [24.602834034136933, -0.5054532658565826], [26.495359729070543, 0.9784091409455723], [28.387885424004153, -0.11330767760126746], [30.28041111893776, -0.9067516281939852], [32.172936813871374, 0.6867513112134991], [34.065462508804984, 0.47243956847967356], [35.957988203738594, -0.9855293386108986], [37.850513898672205, 0.1508242971613707], [39.743039593605815, 0.8901457403773981], [41.635565288539425, -0.7137661126871365], [43.528090983473035, -0.4387491059717684], [45.42061667840665, 0.9912377749919378], [47.313142373340256, -0.18812486236862985], [49.205668068273866, -0.8722647273621958], [51.098193763207476, 0.739758451079818], [52.990719458141086, 0.40443013959588103], [54.883245153074704, -0.9955262728085592], [56.77577084800831, 0.22515594052268934], [58.66829654294192, 0.8531342035272793], [60.56082223787552, -0.7646910926171667], [62.453347932809145, -0.3695318309407552], [64.34587362774275, 0.9983886888289509], [66.23839932267636, -0.26186448496080134], [68.13092501760997, -0.8327815731637641], [70.02345071254358, 0.7885283215303622], [71.91597640747719, 0.33410417149739546], [73.8085021024108, -0.9998209226697377], [75.70102779734441, 0.2981979110466594], [77.59355349227802, 0.8112359912185961], [79.48607918721163, -0.8112359912185884], [81.37860488214525, -0.29819791104665844], [83.27113057707885, 0.9998209226697379], [85.16365627201246, -0.334104171497383], [87.05618196694607, -0.7885283215303703], [88.94870766187968, 0.8327815731637568], [90.8412333568133, 0.2618644849608004], [92.7337590517469, -0.9983886888289517], [94.62628474668051, 0.3695318309407495], [96.51881044161412, 0.7646910926171798], [98.41133613654773, -0.8531342035272723], [100.30386183148136, -0.2251559405226884], [102.19638752641495, 0.9955262728085598], [104.08891322134856, -0.40443013959586893], [105.98143891628217, -0.7397584510798267], [107.87396461121578, 0.8722647273621893], [109.76649030614941, 0.18812486236862888], [111.659016001083, -0.9912377749919387], [113.55154169601661, 0.43874910597175654], [115.44406739095022, 0.7137661126871457], [117.33659308588383, -0.8901457403773921], [119.22911878081744, -0.15082429716138376], [121.12164447575104, 0.9855293386109033], [123.01417017068468, -0.4724395684796744], [124.90669586561829, -0.6867513112134984], [126.7992215605519, 0.9067516281939841], [128.6917472554855, 0.11330767760128062], [130.58427295041912, -0.9784091409455721], [132.47679864535272, 0.5054532658565712], [134.36932434028634, 0.6587527451017916], [136.26185003521994, -0.9220586030376091], [138.15437573015353, -0.07562874588448247], [140.04690142508716, 0.9698873816105301], [141.93942712002078, -0.5377429062990139], [143.83195281495438, -0.6298105220282806], [145.724478509888, 0.9360447378142734], [147.6170042048216, 0.03784147671768271], [149.50952989975522, -0.9599762679439223], [151.40205559468882, 0.5692622352080555], [153.29458128962244, 0.5999661014486946], [155.18710698455604, -0.9486899975206123], [157.07963267948963, -2.7439516068539772e-14], [158.97215837442326, 0.9486899975206207], [160.86468406935688, -0.5999661014486961], [162.7572097642905, -0.5692622352080539], [164.6497354592241, 0.9599762679439229], [166.5422611541577, -0.037841476717656274], [168.43478684909132, -0.9360447378142728], [170.32731254402492, 0.62981052202826], [172.21983823895854, 0.5377429062990122], [174.11236393389214, -0.9698873816105237], [176.00488962882574, 0.07562874588442775], [177.89741532375936, 0.9220586030376193], [179.78994101869299, -0.658752745101793], [181.6824667136266, -0.5054532658565695], [183.5749924085602, 0.9784091409455725], [185.4675181034938, -0.11330767760125432], [187.36004379842743, -0.9067516281939833], [189.25256949336102, 0.6867513112134895], [191.14509518829465, 0.47243956847967267], [193.03762088322824, -0.9855293386108964], [194.93014657816184, 0.15082429716134355], [196.82267227309546, 0.8901457403774041], [198.7151979680291, -0.7137661126871372], [200.6077236629627, -0.4387491059717548], [202.5002493578963, 0.991237774991937], [204.3927750528299, -0.18812486236861686], [206.28530074776353, -0.8722647273621953], [208.17782644269712, 0.739758451079809], [210.07035213763075, 0.40443013959588014], [211.96287783256435, -0.9955262728085572], [213.85540352749794, 0.2251559405226626], [215.74792922243157, 0.8531342035272862], [217.6404549173652, -0.7646910926171719], [219.53298061229881, -0.36953183094074765], [221.4255063072324, 0.998388688828951], [223.318032002166, -0.2618644849607886], [225.21055769709963, -0.8327815731637636], [227.10308339203323, 0.788528321530354], [228.99560908696685, 0.3341041714973945], [230.88813478190045, -0.9998209226697374], [232.78066047683404, 0.2981979110466332], [234.67318617176767, 0.8112359912186039], [236.5657118667013, -0.8112359912185889], [238.4582375616349, -0.29819791104668464], [240.3507632565685, 0.9998209226697379], [242.24328895150208, -0.3341041714973437], [244.13581464643573, -0.7885283215303698], [246.02834034136936, 0.8327815731637652], [247.92086603630295, 0.26186448496081316], [249.81339173123658, -0.9983886888289508], [251.70591742617015, 0.369531830940724], [253.5984431211038, 0.76469109261717], [255.49096881603737, -0.8531342035272581], [257.383494510971, -0.22515594052271512], [259.2760202059046, 0.9955262728085597], [261.16854590083824, -0.40443013959588286], [263.0610715957718, -0.7397584510798453], [264.95359729070543, 0.8722647273621829], [266.84612298563906, 0.18812486236864187], [268.7386486805727, -0.9912377749919367], [270.6311743755063, 0.43874910597178296], [272.5237000704399, 0.7137661126871551], [274.4162257653735, -0.8901457403773926], [276.30875146030706, -0.15082429716142493], [278.20127715524075, 0.9855293386108959], [280.0938028501743, -0.4724395684796502], [281.98632854510794, -0.686751311213508], [283.87885424004156, 0.9067516281939846], [285.77137993497513, 0.11330767760130787], [287.66390562990875, -0.9784091409455777], [289.5564313248424, 0.505453265856572], [291.448957019776, 0.6587527451017908], [293.34148271470957, -0.9220586030375985], [295.2340084096432, -0.0756287458844815], [297.1265341045768, 0.9698873816105298], [299.01905979951044, -0.5377429062990148], [300.911585494444, -0.6298105220283019], [302.80411118937764, 0.9360447378142638], [304.69663688431126, 0.037841476717681725], [306.5891625792449, -0.959976267943922], [308.4816882741785, 0.5692622352080797], [310.3742139691121, 0.5999661014487165], [312.2667396640457, -0.9486899975206127], [314.15926535897927, -5.4879032137079545e-14], [316.05179105391295, 0.9486899975206113], [317.9443167488465, -0.5999661014486742], [319.83684244378014, -0.5692622352080765], [321.72936813871377, 0.9599762679439231], [323.62189383364733, -0.03784147671762885], [325.514419528581, -0.9360447378142625], [327.4069452235146, 0.6298105220282608], [329.2994709184482, 0.5377429062990114], [331.1919966133818, -0.9698873816105169], [333.0845223083154, 0.07562874588442874], [334.977048003249, 0.922058603037619], [336.86957369818265, -0.6587527451017938], [338.7620993931162, -0.5054532658566177], [340.65462508804984, 0.9784091409455669], [342.54715078298346, -0.1133076776012553], [344.4396764779171, -0.9067516281939829], [346.3322021728507, 0.6867513112135109], [348.2247278677843, 0.47243956847969687], [350.1172535627179, -0.9855293386108965], [352.0097792576515, 0.15082429716131643], [353.90230495258515, 0.8901457403773908], [355.7948306475187, -0.713766112687118], [357.68735634245235, -0.43874910597177946], [359.57988203738597, 0.9912377749919371], [361.47240773231954, -0.1881248623685899], [363.3649334272532, -0.872264727362181], [365.2574591221868, 0.7397584510798096], [367.1499848171204, 0.40443013959587926], [369.042510512054, -0.9955262728085547], [370.9350362069876, 0.22515594052266355], [372.82756190192123, 0.8531342035272856], [374.72008759685485, -0.7646910926171726], [376.6126132917884, -0.36953183094079955], [378.50513898672205, 0.9983886888289495], [380.39766468165567, -0.26186448496078957], [382.2901903765893, -0.832781573163763], [384.1827160715229, 0.7885283215303721], [386.0752417664565, 0.3341041714974204], [387.9677674613901, -0.9998209226697374], [389.8602931563237, 0.298197911046607], [391.75281885125736, 0.8112359912185867], [393.6453445461909, -0.8112359912185729], [395.53787024112455, -0.2981979110466837], [397.4303959360582, 0.9998209226697379], [399.32292163099174, -0.33410417149734467], [401.2154473259254, -0.7885283215303517], [403.107973020859, 0.83278157316375], [405.0004987157926, 0.2618644849608122], [406.8930244107262, -0.998388688828954], [408.7855501056598, 0.3695318309407249], [410.67807580059343, 0.7646910926171877], [412.57060149552706, -0.8531342035272734], [414.4631271904606, -0.22515594052274185], [416.35565288539425, 0.9955262728085623], [418.2481785803279, -0.4044301395958578], [420.1407042752615, -0.7397584510798255], [422.0332299701951, 0.8722647273621973], [423.9257556651287, 0.18812486236866882], [425.8182813600623, -0.9912377749919402], [427.7108070549959, 0.43874910597170724], [429.60333274992956, 0.7137661126871344], [431.49585844486313, -0.89014574037738], [433.38838413979676, -0.15082429716139586], [435.2809098347304, 0.9855293386109005], [437.17343552966395, -0.47243956847962604], [439.06596122459763, -0.6867513112134866], [440.9584869195312, 0.9067516281939729], [442.8510126144648, 0.11330767760127866], [444.7435383093984, -0.9784091409455834], [446.636064004332, 0.5054532658565484], [448.52858969926564, 0.6587527451018115], [450.42111539419926, -0.9220586030376099], [452.31364108913283, -0.07562874588450885], [454.20616678406645, 0.9698873816105366], [456.0986924790001, -0.5377429062989916], [457.9912181739337, -0.6298105220282791], [459.8837438688673, 0.9360447378142741], [461.7762695638009, 0.03784147671770915], [463.6687952587345, -0.9599762679439298], [465.5613209536681, 0.5692622352080103], [467.45384664860177, 0.599966101448693], [469.34637234353534, -0.9486899975206039], [471.23889803846896, -2.54751293448113e-14]]);
     var google_chart_1083521101029_options = {"curveType":"function","title":"Line chart"};
     var google_chart_1083521101029_chart = new google.visualization.LineChart(document.getElementById('google_chart_1083521101029'));
     google_chart_1083521101029_chart.draw(google_chart_1083521101029_data,  google_chart_1083521101029_options);

   }

 </script>

Paul

W dniu 2015-01-18 o 17:28, john verzani pisze:

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.


Reply to this email directly or view it on GitHub
#23 (comment).

@jverzani
Copy link
Owner

This is because the plot function only samples 250 regularly spaced points
over the domain. You will see some oddities. Try this to see:

plot(sin, 0, 249pi)

Look at the maximum values which all should be 0, but aren't due to
rounding. This is a bit better, but still has issues:

plot(sinpi, 0, 249) |> render

If you wanted to plot such oscillatory functions you are going to have a
problem at some point, as there are only so many pixels to go around. But
you could get farther than this by mimicking the plot commands in the
plot interface:

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,
nothing)

If you have the packages installed (or use juliabox) you can try this to
have some fun stepping through the values:

using Gadfly, Interact

@manipulate for n=1:500

plot(sin, 0, n*pi)

end

On Sun, Jan 18, 2015 at 11:50 AM, paulanalyst notifications@github.com
wrote:

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() { var google_chart_1083521101029_data = new google.visualization.DataTable();google_chart_1083521101029_data.addColumn("number", "x");google_chart_1083521101029_data.addColumn("number", "y");google_chart_1083521101029_data.addRows([[0.0, 0.0], [1.89252569493361, 0.9486899975206166], [3.78505138986722, -0.599966101448695], [5.677577084800832, -0.5692622352080656], [7.57010277973444, 0.9599762679439223], [9.462628474668051, -0.03784147671766949], [11.355154169601663, -0.9360447378142724], [13.247679864535272, 0.6298105220282704], [15.14020555946888, 0.5377429062990146], [17.032731254402492, -0.9698873816105269], [18.925256949336102, 0.07562874588445512], [20.817782644269712, 0.9220586030376142], [22.710308339203326, -0.6587527451017949], [24.602834034136933, -0.5054532658565826], [26.495359729070543, 0.9784091409455723], [28.387885424004153, -0.11330767760126746], [30.28041111893776, -0.9067516281939852], [32.172936813871374, 0.6867513112134991], [34.065462508804984, 0.47243956847967356], [35.957988203738594, -0.9855293386108986], [37.850513898672205, 0.1508242971613707], [39.743039593605815, 0.8901457403773981], [41.635565288539425, -0.7137661126871365], [43.528090983473035, -0.4387491059717684], [45.42061667840665, 0.9912377749919378], [47.313142373340256, -0.18812486236862985], [49.205668068273866, -0.8722647273621958], [51.098193763207476, 0.739758451079818], [52.990719458141086, 0.40443013959588103], [54.883245153074704, -0.9955262728085592], [56.77577084800831, 0.22515594052268934], [58.66829654294192, 0.8531342035272793], [60.56082223787552, -0.7646910926171667], [62.453347932809145, -0.3695318309407552], [64.34587362774275, 0.9983886888289509], [66.23839932267636, -0.26186448496080134], [68.13092501760997, -0.8327815731637641], [70.02345071254358, 0.7885283215303622], [71.91597640747719, 0.33410417149739546], [73.8085021024108, -0.9998209226697377], [75.70102779734441, 0.2981979110466594], [77.59355349227802, 0.8112359912185961], [79.48607918721163, -0.8112359912185884], [81.37860488214525, -0.29819791104665844], [83.27113057707885, 0.9998209226697379], [85.16365627201246, -0.334104171497383], [87.05618196694607, -0.7885283215303703], [88.94870766187968, 0.8327815731637568], [90.8412333568133, 0.2618644849608004], [92.7337590517469, -0.9983886888289517], [94.62628474668051, 0.3695318309407495], [96.51881044161412, 0.7646910926171798], [98.41133613654773, -0.8531342035272723], [100.30386183148136, -0.2251559405226884], [102.19638752641495, 0.9955262728085598], [104.08891322134856, -0.40443013959586893], [105.98143891628217, -0.7397584510798267], [107.87396461121578, 0.8722647273621893], [109.76649030614941, 0.18812486236862888], [111.659016001083, -0.9912377749919387], [113.55154169601661, 0.43874910597175654], [115.44406739095022, 0.7137661126871457], [117.33659308588383, -0.8901457403773921], [119.22911878081744, -0.15082429716138376], [121.12164447575104, 0.9855293386109033], [123.01417017068468, -0.4724395684796744], [124.90669586561829, -0.6867513112134984], [126.7992215605519, 0.9067516281939841], [128.6917472554855, 0.11330767760128062], [130.58427295041912, -0.9784091409455721], [132.47679864535272, 0.5054532658565712], [134.36932434028634, 0.6587527451017916], [136.26185003521994, -0.9220586030376091], [138.15437573015353, -0.07562874588448247], [140.04690142508716, 0.9698873816105301], [141.93942712002078, -0.5377429062990139], [143.83195281495438, -0.6298105220282806], [145.724478509888, 0.9360447378142734], [147.6170042048216, 0.03784147671768271], [149.50952989975522, -0.9599762679439223], [151.40205559468882, 0.5692622352080555], [153.29458128962244, 0.5999661014486946], [155.18710698455604, -0.9486899975206123], [157.07963267948963, -2.7439516068539772e-14], [158.97215837442326, 0.9486899975206207], [160.86468406935688, -0.5999661014486961], [162.7572097642905, -0.5692622352080539], [164.6497354592241, 0.9599762679439229], [166.5422611541577, -0.037841476717656274], [168.43478684909132, -0.9360447378142728], [170.32731254402492, 0.62981052202826], [172.21983823895854, 0.5377429062990122], [174.11236393389214, -0.9698873816105237], [176.00488962882574, 0.07562874588442775], [177.89741532375936, 0.9220586030376193], [179.78994101869299, -0.658752745101793], [181.6824667136266, -0.5054532658565695], [183.5749924085602, 0.9784091409455725], [185.4675181034938, -0.11330767760125432], [187.36004379842743, -0.9067516281939833], [189.25256949336102, 0.6867513112134895], [191.14509518829465, 0.47243956847967267], [193.03762088322824, -0.9855293386108964], [194.93014657816184, 0.15082429716134355], [196.82267227309546, 0.8901457403774041], [198.7151979680291, -0.7137661126871372], [200.6077236629627, -0.4387491059717548], [202.5002493578963, 0.991237774991937], [204.3927750528299, -0.18812486236861686], [206.28530074776353, -0.8722647273621953], [208.17782644269712, 0.739758451079809], [210.07035213763075, 0.40443013959588014], [211.96287783256435, -0.9955262728085572], [213.85540352749794, 0.2251559405226626], [215.74792922243157, 0.8531342035272862], [217.6404549173652, -0.7646910926171719], [219.53298061229881, -0.36953183094074765], [221.4255063072324, 0.998388688828951], [223.318032002166, -0.2618644849607886], [225.21055769709963, -0.8327815731637636], [227.10308339203323, 0.788528321530354], [228.99560908696685, 0.3341041714973945], [230.88813478190045, -0.9998209226697374], [232.78066047683404, 0.2981979110466332], [234.67318617176767, 0.8112359912186039], [236.5657118667013, -0.8112359912185889], [238.4582375616349, -0.29819791104668464], [240.3507632565685, 0.9998209226697379], [242.24328895150208, -0.3341041714973437], [244.13581464643573, -0.7885283215303698], [246.02834034136936, 0.8327815731637652], [247.92086603630295, 0.26186448496081316], [249.81339173123658, -0.9983886888289508], [251.70591742617015, 0.369531830940724], [253.5984431211038, 0.76469109261717], [255.49096881603737, -0.8531342035272581], [257.383494510971, -0.22515594052271512], [259.2760202059046, 0.9955262728085597], [261.16854590083824, -0.40443013959588286], [263.0610715957718, -0.7397584510798453], [264.95359729070543, 0.8722647273621829], [266.84612298563906, 0.18812486236864187], [268.7386486805727, -0.9912377749919367], [270.6311743755063, 0.43874910597178296], [272.5237000704399, 0.7137661126871551], [274.4162257653735, -0.8901457403773926], [276.30875146030706, -0.15082429716142493], [278.20127715524075, 0.9855293386108959], [280.0938028501743, -0.4724395684796502], [281.98632854510794, -0.686751311213508], [283.87885424004156, 0.9067516281939846], [285.77137993497513, 0.11330767760130787], [287.66390562990875, -0.9784091409455777], [289.5564313248424, 0.505453265856572], [291.448957019776, 0.6587527451017908], [293.34148271470957, -0.9220586030375985], [295.2340084096432, -0.0756287458844815], [297.1265341045768, 0.9698873816105298], [299.01905979951044, -0.5377429062990148], [300.911585494444, -0.6298105220283019], [302.80411118937764, 0.9360447378142638], [304.69663688431126, 0.037841476717681725], [306.5891625792449, -0.959976267943922], [308.4816882741785, 0.5692622352080797], [310.3742139691121, 0.5999661014487165], [312.2667396640457, -0.9486899975206127], [314.15926535897927, -5.4879032137079545e-14], [316.05179105391295, 0.9486899975206113], [317.9443167488465, -0.5999661014486742], [319.83684244378014, -0.5692622352080765], [321.72936813871377, 0.9599762679439231], [323.62189383364733, -0.03784147671762885], [325.514419528581, -0.9360447378142625], [327.4069452235146, 0.6298105220282608], [329.2994709184482, 0.5377429062990114], [331.1919966133818, -0.9698873816105169], [333.0845223083154, 0.07562874588442874], [334.977048003249, 0.922058603037619], [336.86957369818265, -0.6587527451017938], [338.7620993931162, -0.5054532658566177], [340.65462508804984, 0.9784091409455669], [342.54715078298346, -0.1133076776012553], [344.4396764779171, -0.9067516281939829], [346.3322021728507, 0.6867513112135109], [348.2247278677843, 0.47243956847969687], [350.1172535627179, -0.9855293386108965], [352.0097792576515, 0.15082429716131643], [353.90230495258515, 0.8901457403773908], [355.7948306475187, -0.713766112687118], [357.68735634245235, -0.43874910597177946], [359.57988203738597, 0.9912377749919371], [361.47240773231954, -0.1881248623685899], [363.3649334272532, -0.872264727362181], [365.2574591221868, 0.7397584510798096], [367.1499848171204, 0.40443013959587926], [369.042510512054, -0.9955262728085547], [370.9350362069876, 0.22515594052266355], [372.82756190192123, 0.8531342035272856], [374.72008759685485, -0.7646910926171726], [376.6126132917884, -0.36953183094079955], [378.50513898672205, 0.9983886888289495], [380.39766468165567, -0.26186448496078957], [382.2901903765893, -0.832781573163763], [384.1827160715229, 0.7885283215303721], [386.0752417664565, 0.3341041714974204], [387.9677674613901, -0.9998209226697374], [389.8602931563237, 0.298197911046607], [391.75281885125736, 0.8112359912185867], [393.6453445461909, -0.8112359912185729], [395.53787024112455, -0.2981979110466837], [397.4303959360582, 0.9998209226697379], [399.32292163099174, -0.33410417149734467], [401.2154473259254, -0.7885283215303517], [403.107973020859, 0.83278157316375], [405.0004987157926, 0.2618644849608122], [406.8930244107262, -0.998388688828954], [408.7855501056598, 0.3695318309407249], [410.67807580059343, 0.7646910926171877], [412.57060149552706, -0.8531342035272734], [414.4631271904606, -0.22515594052274185], [416.35565288539425, 0.9955262728085623], [418.2481785803279, -0.4044301395958578], [420.1407042752615, -0.7397584510798255], [422.0332299701951, 0.8722647273621973], [423.9257556651287, 0.18812486236866882], [425.8182813600623, -0.9912377749919402], [427.7108070549959, 0.43874910597170724], [429.60333274992956, 0.7137661126871344], [431.49585844486313, -0.89014574037738], [433.38838413979676, -0.15082429716139586], [435.2809098347304, 0.9855293386109005], [437.17343552966395, -0.47243956847962604], [439.06596122459763, -0.6867513112134866], [440.9584869195312, 0.9067516281939729], [442.8510126144648, 0.11330767760127866], [444.7435383093984, -0.9784091409455834], [446.636064004332, 0.5054532658565484], [448.52858969926564, 0.6587527451018115], [450.42111539419926, -0.9220586030376099], [452.31364108913283, -0.07562874588450885], [454.20616678406645, 0.9698873816105366], [456.0986924790001, -0.5377429062989916], [457.9912181739337, -0.6298105220282791], [459.8837438688673, 0.9360447378142741], [461.7762695638009, 0.03784147671770915], [463.6687952587345, -0.9599762679439298], [465.5613209536681, 0.5692622352080103], [467.45384664860177, 0.599966101448693], [469.34637234353534, -0.9486899975206039], [471.23889803846896, -2.54751293448113e-14]]); var google_chart_1083521101029_options = {"curveType":"function","title":"Line chart"}; var google_chart_1083521101029_chart = new google.visualization.LineChart(document.getElementById('google_chart_1083521101029')); google_chart_1083521101029_chart.draw(google_chart_1083521101029_data, google_chart_1083521101029_options); } </script>

Paul

W dniu 2015-01-18 o 17:28, john verzani pisze:

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.


Reply to this email directly or view it on GitHub
<
https://github.com/jverzani/GoogleCharts.jl/issues/23#issuecomment-70414591>.


Reply to this email directly or view it on GitHub
#23 (comment)
.

John Verzani
Chair, Department of Mathematics
College of Staten Island, CUNY
verzani@math.csi.cuny.edu

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants