multigraph-users Mailing List for Multigraph
Brought to you by:
mphillips
You can subscribe to this list here.
2010 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(8) |
Jul
(2) |
Aug
(8) |
Sep
|
Oct
|
Nov
(6) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Jesse E. - N. F. <jes...@no...> - 2014-08-18 12:06:19
|
Is there any support for this tool any more? On Mon, Aug 11, 2014 at 2:07 PM, Jesse Enloe - NOAA Federal < jes...@no...> wrote: > I am trying to update the plot on the following page to the latest version > of Multigraph: > > http://www.ncdc.noaa.gov/temp-and-precip/uspa/ > > I've attached the updated mugl file. However, I need to add: > > minposition="1" maxposition="-1" > > to both the neg-y and neg-y2 verticalaxes, however it keeps crashing when > I do add it. Please advise. > > Thanks, > Jesse > > -- > Jesse Enloe > Physical Scientist > > Climate Monitoring Branch > National Climatic Data Center > 151 Patton Ave. > Asheville, NC 28801-5001 > > jes...@no... > (828) 271-4100 > > Follow NCDC on Facebook > <http://www.facebook.com/NOAANationalClimaticDataCenter> and Twitter > <http://www.twitter.com/NOAANCDC> (@NOAANCDC) > -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 Follow NCDC on Facebook <http://www.facebook.com/NOAANationalClimaticDataCenter> and Twitter <http://www.twitter.com/NOAANCDC> (@NOAANCDC) |
From: Jesse E. - N. F. <jes...@no...> - 2014-05-09 13:26:16
|
I'm having trouble debugging my code. It keeps saying: Error: Improper input for Datetime Measure's parse method Code is below. Any suggestions? Thanks! <?xml version="1.0"?><mugl> <window margin="0" padding="5" border="0" bordercolor="0x0057a5"/> <background> <img anchor="0 0" base="-1 1" position="65 65" frame="plot" src="/cmb-lib/cmb-templates/images/noaa-logo-watermark.png <view-source:http://cmb.dev.ncdc.noaa.gov/cmb-lib/cmb-templates/images/noaa-logo-watermark.png>" /> </background> <plotarea marginbottom="35" marginleft="44" margintop="55" marginright="45" /> <title> Number of Billion-Dollar Events and Total Cost by Year </title> <legend base="0 1" anchor="0 1" rows="1" position="0 -50" border="0" frame="padding" visible="true"> <icon border="0" height="20" width="15" /> </legend> <horizontalaxis id="x" type="datetime" min="1979" max="2014" length="1" base="-1,-1" anchor="-1" tickmin="-5" tickmax="5"> <title></title> <labels format="%Y" start="0" spacing="20Y 10Y 5Y 2Y 1Y"/> <pan min="1979" max="2014" /> <grid /> </horizontalaxis> <verticalaxis id="y" min="0" max="18" length="1"> <grid /> <title angle="90" anchor="0 -1" position="-40 0">Number of Events</title> <binding id="ybinding" min="0" max="18" /> </verticalaxis> <verticalaxis id="y2" min="0" max="205" length="1" base="1 -1"> <title angle="270" anchor="1 0" position="40 0">Cost in Billions of Dollars</title> <binding id="ybinding" min="0" max="205" /> </verticalaxis> <plot> <legend label="# Events (CPI-Adjusted)" /> <horizontalaxis ref="x"> <variable ref="x" /> </horizontalaxis> <verticalaxis ref="y"> <variable ref="# Events (CPI-Adjusted)" /> </verticalaxis> <renderer type="bar"> <option name="linecolor" value="0xff0000" /> <option name="fillcolor" value="0xff7373" /> <option name="hidelines" value="2" /> <option name="barwidth" value="1" /> <option name="baroffset" value="0" /> <option name="barbase" value="0" /> </renderer> </plot> <plot> <legend label="# Events" /> <horizontalaxis ref="x"> <variable ref="x" /> </horizontalaxis> <verticalaxis ref="y"> <variable ref="# Events" /> </verticalaxis> <renderer type="bar"> <option name="linecolor" value="0x0000ff" /> <option name="fillcolor" value="0x5e9bd2" /> <option name="hidelines" value="2" /> <option name="barwidth" value="1" /> <option name="baroffset" value="0" /> <option name="barbase" value="0" /> </renderer> </plot> <plot> <legend label="CPI-Adjusted Cost" /> <horizontalaxis ref="x"> <variable ref="x" /> </horizontalaxis> <verticalaxis ref="y2"> <variable ref="CPI-Adjusted Cost" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xff0000" /> <option name="linewidth" value="1.5" /> </renderer> </plot> <plot> <legend label="Cost" /> <horizontalaxis ref="x"> <variable ref="x" /> </horizontalaxis> <verticalaxis ref="y2"> <variable ref="Cost" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0x0000ff" /> <option name="linewidth" value="1.5" /> </renderer> </plot> <data> <variables> <variable column="0" id="x" type="datetime" /> <variable column="1" id="# Events (CPI-Adjusted)" missingvalue="-999" missingop="le" /> <variable column="2" id="# Events" missingvalue="-999" missingop="le" /> <variable column="3" id="CPI-Adjusted Cost" missingvalue="-999" missingop="le" /> <variable column="4" id="Cost" missingvalue="-999" missingop="le" /> </variables> <values> 1980,3,1,60.4,21.1 1981,1,0,1.1,0.4 1982,3,0,3.9,1.6 1983,5,5,24.1,10.2 1984,2,0,2.2,1 1985,5,3,12.1,5.5 1986,2,1,3.9,1.8 1987,0,0,0,0 1988,1,1,80,40 1989,5,3,25.2,13.2 1990,3,2,9.4,5.2 1991,4,3,12.3,7.1 1992,6,3,55,32.7 1993,4,4,46.6,28.5 1994,6,4,12.7,7.9 1995,4,4,21.2,13.6 1996,4,4,21.2,14 1997,3,3,11.3,7.7 1998,9,8,33.1,22.7 1999,5,4,15.4,10.9 2000,2,2,8.2,6 2001,2,2,9.2,6.9 2002,4,3,19.1,14.6 2003,7,5,21.6,16.8 2004,5,4,57.6,46 2005,5,5,193.7,160 2006,6,6,13.7,11.6 2007,5,5,12.4,10.9 2008,11,11,64.6,58.8 2009,7,7,12.8,11.7 2010,5,4,10.5,9.7 2011,16,16,65.1,61.7 2012,11,11,118.1,114.6 2013,9,9,22.8,22.7 </values> </data></mugl> -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 Follow NCDC on Facebook<http://www.facebook.com/NOAANationalClimaticDataCenter> and Twitter <http://www.twitter.com/NOAANCDC> (@NOAANCDC) |
From: James A. <jam...@no...> - 2012-05-31 20:46:42
|
I have a program which is creating a multigraph for multiple indices, and I'd like to be able to control the order in which the legend titles are displayed in the legend above the plots. From what I can tell there is no way to control this (please refer me to the correct place in the docs if I've missed it) other than the order in which the plot elements are in the MUGL appears to be the reverse order of how the corresponding legend titles are listed in the legend. For example I am producing the following MUGL: <mugl><graph height="400" width="800" x="0" y="0"><window border="0" height="400" margin="2" padding="5" width="800"/><plotarea marginbottom="50" marginleft="50" marginright="30" margintop="60"/><horizontalaxis id="observations_horizontal_axis" max="2013" min="1955" type="number"><title position="0 -30">Year</title><labels anchor="1 0" angle="90" format="%1d" spacing="5 1"/><binding id="horizontalYearMonth" max="1" min="0"/><grid/></horizontalaxis><legend anchor="0 -1" base="0 1" border="0" bordercolor="0xFFFFFF" color="0xFFFFFF" opacity="0.8" rows="2" visible="true"><icon border="0" height="20" width="20"/></legend><verticalaxis id="observations_vertical_axis" max="300" maxoffset="50" min="-4" minoffset="25" position="0" type="number"><title anchor="0 0" angle="90" position="-40 0">Days</title><grid/><labels anchor="1 0" angle="0" format="%.2f" position="-10 0" spacing="50 20 10 5 2 1 0.5 0.05" start="0"/></verticalaxis><plot><horizontalaxis ref="observations_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="observations_vertical_axis"><variable ref="Summer Nights"/></verticalaxis><renderer type="line"><option name="linecolor" value="0xFFA347"/><option name="dotcolor" value="0x000000"/><option name="dotsize" value="1"/><option name="linewidth" value="2"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Summer Nights"/></plot><plot><horizontalaxis ref="observations_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="observations_vertical_axis"><variable ref="Frost Days"/></verticalaxis><renderer type="line"><option name="linecolor" value="0x66CCFF"/><option name="dotcolor" value="0x001F00"/><option name="dotsize" value="1"/><option name="linewidth" value="2"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Frost Days"/></plot><plot><horizontalaxis ref="observations_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="observations_vertical_axis"><variable ref="Summer Nights Trend"/></verticalaxis><renderer type="line"><option name="linecolor" value="0xFFA347"/><option name="dotcolor" value="0x000000"/><option name="dotsize" value="0"/><option name="linewidth" value="1"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Summer Nights Trend (X/decade)"/></plot><plot><horizontalaxis ref="observations_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="observations_vertical_axis"><variable ref="Frost Days Trend"/></verticalaxis><renderer type="line"><option name="linecolor" value="0x66CCFF"/><option name="dotcolor" value="0x001F00"/><option name="dotsize" value="0"/><option name="linewidth" value="1"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Frost Days Trend (X/decade)"/></plot><data><variables><variable id="time" type="number"/><variable id="Frost Days"/><variable id="Frost Days Trend"/><variable id="Summer Nights"/><variable id="Summer Nights Trend"/></variables><values>1955, 102, 96.4579552329101335, 159, 146.3430127041742440 1956, 97, 95.9334543254691172, 169, 146.4867772880477208 1957, 82, 95.4089534180281009, 139, 146.6305418719211976 1958, 101, 94.8844525105870846, 145, 146.7743064557946744 1959, 101, 94.3599516031460683, 146, 146.9180710396681512 1960, 116, 93.8354506957050520, 152, 147.0618356235416280 1961, 100, 93.3109497882640357, 125, 147.2056002074151048 1962, 92, 92.7864488808230194, 154, 147.3493647912885816 1963, 105, 92.2619479733820031, 183, 147.4931293751620584 1964, 101, 91.7374470659409868, 149, 147.6368939590355352 1965, 86, 91.2129461584999705, 165, 147.7806585429090120 1966, 90, 90.6884452510589542, 146, 147.9244231267824888 1967, 82, 90.1639443436179379, 146, 148.0681877106559656 1968, 95, 89.6394434361769216, 141, 148.2119522945294424 1969, 88, 89.1149425287359053, 150, 148.3557168784029192 1970, 88, 88.5904416212948890, 139, 148.4994814622763960 1971, 86, 88.0659407138538727, 140, 148.6432460461498728 1972, 82, 87.5414398064128564, 142, 148.7870106300233496 1973, 70, 87.0169388989718401, 134, 148.9307752138968264 1974, 77, 86.4924379915308238, 124, 149.0745397977703032 1975, 90, 85.9679370840898075, 145, 149.2183043816437800 1976, 86, 85.4434361766487912, 127, 149.3620689655172568 1977, 59, 84.9189352692077749, 164, 149.5058335493907336 1978, 91, 84.3944343617667586, 165, 149.6495981332642104 1979, 88, 83.8699334543257423, 155, 149.7933627171376872 1980, 89, 83.3454325468847260, 154, 149.9371273010111640 1981, 78, 82.8209316394437097, 141, 150.0808918848846408 1982, 79, 82.2964307320026934, 151, 150.2246564687581176 1983, 85, 81.7719298245616771, 148, 150.3684210526315944 1984, 67, 81.2474289171206608, 138, 150.5121856365050712 1985, 91, 80.7229280096796445, 140, 150.6559502203785480 1986, 68, 80.1984271022386282, 148, 150.7997148042520248 1987, 65, 79.6739261947976119, 159, 150.9434793881255016 1988, 84, 79.1494252873565956, 154, 151.0872439719989784 1989, 90, 78.6249243799155793, 154, 151.2310085558724552 1990, 67, 78.1004234724745630, 142, 151.3747731397459320 1991, 75, 77.5759225650335467, 163, 151.5185377236194088 1992, 74, 77.0514216575925304, 148, 151.6623023074928856 1993, 89, 76.5269207501515141, 133, 151.8060668913663624 1994, 66, 76.0024198427104978, 159, 151.9498314752398392 1995, 81, 75.4779189352694815, 146, 152.0935960591133160 1996, 90, 74.9534180278284652, 145, 152.2373606429867928 1997, 74, 74.4289171203874489, 143, 152.3811252268602696 1998, 61, 73.9044162129464326, 159, 152.5248898107337464 1999, 53, 73.3799153055054163, 157, 152.6686543946072232 2000, 84, 72.8554143980644000, 156, 152.8124189784807000 2001, 72, 72.3309134906233837, 157, 152.9561835623541768 2002, 81, 71.8064125831823674, 150, 153.0999481462276536 2003, 55, 71.2819116757413511, 154, 153.2437127301011304 2004, 67, 70.7574107683003348, 158, 153.3874773139746072 2005, 64, 70.2329098608593185, 166, 153.5312418978480840 2006, 66, 69.7084089534183022, 171, 153.6750064817215608 2007, 79, 69.1839080459772859, 176, 153.8187710655950376 2008, 92, 68.6594071385362696, 145, 153.9625356494685144 2009, 82, 68.1349062310952533, 131, 154.1063002333419912 2010, 67, 67.6104053236542370, 163, 154.2500648172154680 2011, 71, 67.0859044162132207, 158, 154.3938294010889448 2012, -9999, -9999, -9999, -9999 </values></data></graph><graph height="220" width="800" x="0" y="420"><window border="0" height="220" margin="2" padding="5" width="800"/><plotarea marginbottom="50" marginleft="50" marginright="30" margintop="60"/><horizontalaxis id="anomalies_horizontal_axis" max="2013" min="1955" type="number"><title position="0 -30">Year</title><labels anchor="1 0" angle="90" format="%1d" spacing="5 1"/><binding id="horizontalYearMonth" max="1" min="0"/><grid/></horizontalaxis><legend anchor="0 -1" base="0 1" border="0" bordercolor="0x000000" color="0xFFFFFF" opacity="0.8" rows="2" visible="true"><icon border="0" height="20" width="20"/></legend><verticalaxis id="anomalies_vertical_axis" max="80" maxoffset="50" min="-80" minoffset="25" position="0" type="number"><title anchor="0 0" angle="90" position="-40 0">Days</title><grid/><labels anchor="1 0" angle="0" format="%.2f" position="-10 0" spacing="50 20 10 5 2 1 0.5 0.05" start="0"/></verticalaxis><plot><horizontalaxis ref="anomalies_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="anomalies_vertical_axis"><variable ref="Frost Days Anomalies"/></verticalaxis><renderer type="line"><option name="linecolor" value="0x66CCFF"/><option name="dotcolor" value="0x001F00"/><option name="dotsize" value="1"/><option name="linewidth" value="2"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Frost Days Anomalies"/></plot><plot><horizontalaxis ref="anomalies_horizontal_axis"><variable ref="time"/></horizontalaxis><verticalaxis ref="anomalies_vertical_axis"><variable ref="Summer Nights Anomalies"/></verticalaxis><renderer type="line"><option name="linecolor" value="0xFFA347"/><option name="dotcolor" value="0x000000"/><option name="dotsize" value="1"/><option name="linewidth" value="2"/><option name="missingvalue" value="-9999"/><option name="missingop" value="EQ"/></renderer><legend label="Summer Nights Anomalies"/></plot><data><variables><variable id="time" type="number"/><variable id="Frost Days Anomalies"/><variable id="Summer Nights Anomalies"/></variables><values>1955, 18, 11.6 1956, 13, 21.6 1957, -2, -8.4 1958, 17, -2.4 1959, 17, -1.4 1960, 32, 4.6 1961, 16, -22.4 1962, 8, 6.6 1963, 21, 35.6 1964, 17, 1.6 1965, 2, 17.6 1966, 6, -1.4 1967, -2, -1.4 1968, 11, -6.4 1969, 4, 2.6 1970, 4, -8.4 1971, 2, -7.4 1972, -2, -5.4 1973, -14, -13.4 1974, -7, -23.4 1975, 6, -2.4 1976, 2, -20.4 1977, -25, 16.6 1978, 7, 17.6 1979, 4, 7.6 1980, 5, 6.6 1981, -6, -6.4 1982, -5, 3.6 1983, 1, 0.6 1984, -17, -9.4 1985, 7, -7.4 1986, -16, 0.6 1987, -19, 11.6 1988, 0, 6.6 1989, 6, 6.6 1990, -17, -5.4 1991, -9, 15.6 1992, -10, 0.6 1993, 5, -14.4 1994, -18, 11.6 1995, -3, -1.4 1996, 6, -2.4 1997, -10, -4.4 1998, -23, 11.6 1999, -31, 9.6 2000, 0, 8.6 2001, -12, 9.6 2002, -3, 2.6 2003, -29, 6.6 2004, -17, 10.6 2005, -20, 18.6 2006, -18, 23.6 2007, -5, 28.6 2008, 8, -2.4 2009, -2, -16.4 2010, -17, 15.6 2011, -13, 10.6 2012, -9999, -9999 </values></data></graph></mugl> Look at the resulting Multigraph in the tester and you'll see that the legend order for the first graph is 1. Frost Days Trend 2. Summer Nights Trend 3. Frost Days 4. Summer Nights The order above is the reverse order of the <plot> elements for these indices within the <graph> element, so my assumption is that the order in which you add <plot> elements is the reverse order to how they'll be listed in the legend. Is this true? Is there a way around this? For example if I know I want my legend to list the indices like this: 1. indicator A 2. indicator A trend 3. indicator B 4. indicator B trend then is it required that I add the <plot> elements in the reverse order, like this: <graph> <plot for indicator B trend> <plot for indicator B> <plot for indicator A trend> <plot for indicator A> <graph> Thanks in advance for any clarifications or advice. --James |
From: James A. <mon...@gm...> - 2011-11-15 16:38:19
|
I have a Flex application that uses the Multigraph Flex Component. When I construct this component in my application code I specify a URL to a web service that will respond with MUGL for the multigraph. This web service is a Java Servlet. If there is an error processing the MUGL request then I want to display a meaningful message to the user (in the Flex client application), as well as logging the error and sending a message to alert the developer (me) of the issue. What is the best way for the web service servlet to respond to an error such as an invalid request parameter? Are there certain HTTP response codes that this Multigraph Flex Component is aware of and handles gracefully? For example: My application creates a Multigraph component and sets the web service URL (i.e. the Multigraph component's muglfile attribute/property) to something which contains a bad request parameter: multiGraph.muglfile = "http://jadams.ncdc.noaa.gov/graphapp/mugl_for_station?station_code=INVALID_STATION_CODE"; What is the best way to handle the error in my web service code? When I catch the error I can throw an exception from the servlet, and this will create an HTTP response with a non-200 HTTP response code -- can the Multigraph component handle this, and if so how do I capture the error message? Thanks for any suggestions. --James |
From: Mark P. <mph...@un...> - 2010-11-22 19:15:46
|
The downfillcolor option doesn't exist any more. It's been replaced by the "min" and/or "max" attributes on the "fillcolor" option. Try just removing the reference to "downfillcolor". My apologies for the state of the documentation about this --- I'll update the user guide for these things soon! --Mark |
From: James A. <Jam...@no...> - 2010-11-22 18:45:29
|
I get the following error when testing some MUGL on the interactive tester page: ReferenceError: Error #1056: Cannot create property downfillcolor on multigraph.renderer.Bar. at multigraph::Graph/init_phase2() at multigraph::Graph/init_phase1() at multigraph::Graph/init() at multigraph::Graph() at multigraph::Multigraph/createGraphs() at MethodInfo-73() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete() The MUGL I'm using for testing is below: <mugl> <graph height="380" width="800" x="0" y="0"> <window border="0" height="380" margin="2" padding="5" width="800"/> <plotarea marginbottom="40" marginleft="50" marginright="30" margintop="10"/> <horizontalaxis id="haxis" max="2009" min="1895" type="number"> <binding id="yearbinding" max="1" min="0"/> <grid/> <pan max="2010" min="1895"/> <labels anchor="0 1" angle="0"/> <title position="0 -25">Year</title> </horizontalaxis> <legend anchor="0 1" base="0 1" border="0" bordercolor="0x000000" color="0xFFFFFF" columns="2" opacity="0.8" position="0 0" visible="true"> <icon border="0" height="20" width="20"/> </legend> <verticalaxis id="pcp" max="83.85" maxoffset="10" min="-7.62" minoffset="5" position="0" postgap="0" pregap="0" type="number"> <grid/> <title anchor="0 0" angle="90" position="-40 0">Precipitation Amount [inches]</title> <pan max="304.92" min="-228.69"/> <labels anchor="1 0" angle="0" format="%.1f" position="-10 0" spacing="5000 1000 500 200 100 50 20 10 5 2 1 0.5 0.2 0.1 0.05 0.02 0.01" start="0"/> </verticalaxis> <plot> <legend label="Precipitation Amount [GHCN]"/> <horizontalaxis ref="haxis"> <variable ref="time"/> </horizontalaxis> <verticalaxis ref="pcp"> <variable ref="pcp"/> </verticalaxis> <renderer type="line"> <option name="linecolor" value="black"/> <option name="linewidth" value="2"/> <option name="missingvalue" value="-9999.9999"/> <option name="missingop" value="EQ"/> </renderer> </plot> <plot> <legend label="Precipitation Amount [divisional]"/> <horizontalaxis ref="haxis"> <variable ref="time"/> </horizontalaxis> <verticalaxis ref="pcp"> <variable ref="pcp1"/> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xA0A0A0"/> <option name="linewidth" value="2"/> <option name="missingvalue" value="-9999.9999"/> <option name="missingop" value="EQ"/> </renderer> </plot> <data> <variables> <variable id="time"/> <variable id="pcp"/> <variable id="pcp1"/> </variables> <values>1895, 0.0, 44.72 1896, 0.0, 41.26 1897, 0.0, 42.11 1898, 0.0, 44.5 1899, 0.0, 42.94 1900, 0.0, 61.89 1901, 0.0, 50.46 1902, 0.0, 45.41 1903, 0.0, 45.59 1904, 0.0, 34.97 1905, 0.0, 50.61 1906, 0.0, 52.18 1907, 0.0, 51.15 1908, 0.0, 44.02 1909, 0.0, 53.69 1910, 0.0, 41.92 1911, 0.0, 48.1 1912, 0.0, 61.05 1913, 0.0, 48.56 1914, 0.0, 41.32 1915, 0.0, 49.68 1916, 0.0, 48.12 1917, 0.0, 49.14 1918, 0.0, 52.7 1919, 0.0, 58.43 1920, 0.0, 58.25 1921, 0.0, 41.34 1922, 0.0, 53.28 1923, 0.0, 54.74 1924, 0.0, 44.01 1925, 0.0, 41.61 1926, 0.0, 55.35 1927, 0.0, 42.1 1928, 0.0, 51.21 1929, 0.0, 70.28 1930, 0.0, 42.71 1931, 0.0, 43.25 1932, 0.0, 63.82 1933, 0.0, 48.43 1934, 0.0, 56.01 1935, 0.0, 49.65 1936, 0.0, 60.53 1937, 0.0, 59.57 1938, 0.0, 47.6 1939, 0.0, 59.82 1940, 0.0, 55.1 1941, 0.0, 47.2 1942, 0.0, 54.9 1943, 0.0, 48.83 1944, 0.0, 60.77 1945, 0.0, 57.81 1946, 0.0, 66.54 1947, 0.0, 61.26 1948, 0.0, 68.04 1949, 0.0, 56.85 1950, 0.0, 51.93 1951, 0.0, 52.26 1952, 0.0, 47.34 1953, 0.0, 59.79 1954, 0.0, 33.58 1955, 0.0, 48.01 1956, 0.0, 53.59 1957, 0.0, 58.46 1958, 0.0, 49.58 1959, 0.0, 55.81 1960, 0.0, 51.57 1961, 0.0, 70.48 1962, 0.0, 51.47 1963, 0.0, 49.83 1964, 0.0, 66.8 1965, 0.0, 49.06 1966, 0.0, 56.62 1967, 0.0, 56.11 1968, 0.0, 44.97 1969, 0.0, 52.66 1970, 0.0, 54.12 1971, 0.0, 60.59 1972, 0.0, 56.55 1973, 0.0, 67.99 1974, 0.0, 60.75 1975, 0.0, 76.23 1976, 0.0, 56.02 1977, 0.0, 57.6 1978, 0.0, 50.59 1979, 0.0, 68.39 1980, 0.0, 59.33 1981, 0.0, 46.94 1982, 0.0, 62.29 1983, 0.0, 70.75 1984, 0.0, 51.4 1985, 0.0, 51.97 1986, 0.0, 48.43 1987, 0.0, 49.06 1988, 0.0, 52.11 1989, 0.0, 65.97 1990, 0.0, 57.85 1991, 0.0, 64.46 1992, 0.0, 60.48 1993, 0.0, 51.29 1994, 0.0, 61.79 1995, 0.0, 61.47 1996, 0.0, 59.47 1997, 0.0, 64.61 1998, 0.0, 60.29 1999, 0.0, 50.24 2000, 0.0, 43.61 2001, 0.0, 60.44 2002, 0.0, 57.99 2003, 0.0, 65.64 2004, 0.0, 61.39 2005, 0.0, 59.34 2006, 0.0, 48.74 2007, 0.0, 40.08 2008, 0.0, 55.38 2009, 0.0, 75.05 </values> </data> </graph> <graph height="220" width="800" x="0" y="370"> <window border="0" height="220" margin="2" padding="5" width="800"/> <plotarea marginbottom="40" marginleft="50" marginright="30" margintop="10"/> <horizontalaxis id="haxis2" max="2009" min="1895" type="number"> <binding id="yearbinding" max="1" min="0"/> <grid/> <pan max="2010" min="1895"/> <labels anchor="0 1" angle="0"/> <title position="0 -25">Year</title> </horizontalaxis> <legend anchor="0 1" base="0 1" border="0" bordercolor="0x000000" color="0xFFFFFF" columns="2" opacity="0.8" position="0 0" visible="false"> <icon border="0" height="20" width="20"/> </legend> <verticalaxis id="pcp2" max="91.48" maxoffset="10" min="-91.48" minoffset="5" position="0" postgap="0" pregap="0" type="number"> <grid/> <title anchor="0 0" angle="90" position="-40 0">difference [inches]</title> <pan max="533.61" min="-533.61"/> <labels anchor="1 0" angle="0" position="-10 0" spacing="5000 1000 500 200 100 50 20 10 5 2 1 0.5 0.2 0.1 0.05 0.02 0.01" start="0"/> </verticalaxis> <plot> <legend label=""/> <horizontalaxis ref="haxis"> <variable ref="time"/> </horizontalaxis> <verticalaxis ref="pcp2"> <variable ref="pcp2"/> </verticalaxis> <renderer type="bar"> <option min="0" name="fillcolor" value="olive"/> <option max="0" name="fillcolor" value="orange"/> <option name="barwidth" value="1"/> <option name="baroffset" value="0.5"/> <option name="barbase" value="0"/> <option name="downfillcolor" value="olive"/> <option name="missingvalue" value="-9999.9999"/> <option name="missingop" value="EQ"/> </renderer> </plot> <data> <variables> <variable id="time"/> <variable id="pcp2"/> </variables> <values>1895, -44.72 1896, -41.26 1897, -42.11 1898, -44.5 1899, -42.94 1900, -61.89 1901, -50.46 1902, -45.41 1903, -45.59 1904, -34.97 1905, -50.61 1906, -52.18 1907, -51.15 1908, -44.02 1909, -53.69 1910, -41.92 1911, -48.1 1912, -61.05 1913, -48.56 1914, -41.32 1915, -49.68 1916, -48.12 1917, -49.14 1918, -52.7 1919, -58.43 1920, -58.25 1921, -41.34 1922, -53.28 1923, -54.74 1924, -44.01 1925, -41.61 1926, -55.35 1927, -42.1 1928, -51.21 1929, -70.28 1930, -42.71 1931, -43.25 1932, -63.82 1933, -48.43 1934, -56.01 1935, -49.65 1936, -60.53 1937, -59.57 1938, -47.6 1939, -59.82 1940, -55.1 1941, -47.2 1942, -54.9 1943, -48.83 1944, -60.77 1945, -57.81 1946, -66.54 1947, -61.26 1948, -68.04 1949, -56.85 1950, -51.93 1951, -52.26 1952, -47.34 1953, -59.79 1954, -33.58 1955, -48.01 1956, -53.59 1957, -58.46 1958, -49.58 1959, -55.81 1960, -51.57 1961, -70.48 1962, -51.47 1963, -49.83 1964, -66.8 1965, -49.06 1966, -56.62 1967, -56.11 1968, -44.97 1969, -52.66 1970, -54.12 1971, -60.59 1972, -56.55 1973, -67.99 1974, -60.75 1975, -76.23 1976, -56.02 1977, -57.6 1978, -50.59 1979, -68.39 1980, -59.33 1981, -46.94 1982, -62.29 1983, -70.75 1984, -51.4 1985, -51.97 1986, -48.43 1987, -49.06 1988, -52.11 1989, -65.97 1990, -57.85 1991, -64.46 1992, -60.48 1993, -51.29 1994, -61.79 1995, -61.47 1996, -59.47 1997, -64.61 1998, -60.29 1999, -50.24 2000, -43.61 2001, -60.44 2002, -57.99 2003, -65.64 2004, -61.39 2005, -59.34 2006, -48.74 2007, -40.08 2008, -55.38 2009, -75.05 </values> </data> </graph> </mugl> |
From: Jesse E. <jes...@no...> - 2010-11-18 15:28:50
|
Nevermind - I removed the "downfillcolor" and it works fine. On Thu, Nov 18, 2010 at 10:23 AM, Jesse Enloe <jes...@no...> wrote: > I'm getting a flash error that it cannot render the downfill color from the > mugl below. However, the interactive tester says the mugl is valid. > > <?xml version="1.0"?> > <mugl> > <title base="0 1" anchor="0 1" border="0" position="0 5" frame="padding"> > Alabama, Palmer Hydrological Drought Index (PHDI), October-September > 1896-2010 > </title> > > <background> > <img anchor="0 0" base="-1 1" position="65 75" frame="plot" > src="/images/noaabk.gif" /> > </background> > > <legend base="0 1" anchor="0 1" rows="1" position="0 -15" border="0" > frame="padding" visible="false"> > <icon border="0" /> > </legend> > > <window border="0" padding="5" margin="2" /> > > <plotarea marginbottom="35" marginleft="35" margintop="35" > marginright="35" /> > > <!-- horizontal axis --> > > <horizontalaxis id="xaxis" min="1896" max="2010" tickmin="-4" tickmax="0" > linewidth="0" highlightstyle="labels"> > <title></title> > <pan min="1891" max="2015" /> > </horizontalaxis> > > <!-- primary vertical axis --> > > <verticalaxis id="primary-y" type="number" min="-5.63" max="4.01"> > <grid /> > <title angle="90" anchor="0 -1">PHDI</title> > <pan min="-5.07" max="4.41" /> > <binding id="y-binding" min="-5.63" max="4.01" /> > </verticalaxis> > > <!-- secondary vertical axis --> > > <verticalaxis id="secondary-y" type="number" linewidth="1" > highlightstyle="labels" base="1 -1"> > <title angle="270" anchor="1 0">PHDI</title> > <binding id="y-binding" min="-5.63" max="4.01" /> > <pan min="-5.07" max="4.41" /> > </verticalaxis> > > <plot> > <horizontalaxis ref="xaxis"> > <variable ref="time"/> > </horizontalaxis> > > <verticalaxis ref="primary-y"> > <variable ref="Palmer Hydrological Drought Index (PHDI)" /> > </verticalaxis> > > <renderer type="bar"> > <option name="fillcolor" value="0xffaa00" max="0" /> > <option name="fillcolor" value="0x008800" min="0" /> > <option name="downfillcolor" value="0x000000ff" /> > <option name="hidelines" value="2" /> > <option name="barwidth" value="1" /> > <option name="baroffset" value="0" /> > <option name="barbase" value="0" /> > </renderer> > </plot> > > <data> > <variables> > <variable column="0" id="time" /> > <variable column="1" id="Palmer Hydrological Drought Index (PHDI)" > type="number" /> > </variables> > <values> > 1896,-2.82 > 1897,-4.17 > 1898,-5.53 > 1899,-3.07 > 1900,-1.76 > 1901,-0.05 > 1902,-1.39 > 1903,-1.94 > 1904,-3.62 > 1905,-3.83 > 1906,-2.41 > 1907,-0.94 > 1908,-0.84 > 1909,-1.18 > 1910,-2.55 > 1911,-3.22 > 1912,-0.43 > 1913,-0.20 > 1914,-3.16 > 1915,-2.99 > 1916,-1.24 > 1917,-0.84 > 1918,-2.00 > 1919,1.48 > 1920,1.15 > 1921,-1.63 > 1922,-2.86 > 1923,-2.15 > 1924,-1.21 > 1925,-3.94 > 1926,-3.28 > 1927,-2.45 > 1928,-1.75 > 1929,0.47 > 1930,-1.08 > 1931,-2.82 > 1932,-2.66 > 1933,0.72 > 1934,-2.56 > 1935,-0.42 > 1936,-0.34 > 1937,-1.27 > 1938,-0.34 > 1939,-0.35 > 1940,0.02 > 1941,-2.14 > 1942,-1.39 > 1943,-0.49 > 1944,-0.57 > 1945,-1.24 > 1946,1.53 > 1947,2.30 > 1948,0.18 > 1949,2.35 > 1950,-0.53 > 1951,-1.04 > 1952,-2.07 > 1953,-1.76 > 1954,-2.08 > 1955,-3.84 > 1956,-2.61 > 1957,-1.10 > 1958,1.03 > 1959,-0.51 > 1960,0.32 > 1961,1.51 > 1962,1.56 > 1963,-1.62 > 1964,0.43 > 1965,0.47 > 1966,-0.49 > 1967,-0.11 > 1968,0.73 > 1969,-1.30 > 1970,-0.18 > 1971,1.07 > 1972,0.42 > 1973,2.06 > 1974,2.09 > 1975,3.48 > 1976,3.91 > 1977,0.90 > 1978,0.80 > 1979,0.98 > 1980,2.65 > 1981,-1.73 > 1982,-0.32 > 1983,2.13 > 1984,2.10 > 1985,-0.44 > 1986,-1.59 > 1987,-0.30 > 1988,-1.95 > 1989,1.59 > 1990,2.80 > 1991,0.20 > 1992,0.55 > 1993,1.46 > 1994,0.59 > 1995,0.86 > 1996,2.27 > 1997,2.11 > 1998,2.32 > 1999,-0.32 > 2000,-2.82 > 2001,-1.07 > 2002,0.04 > 2003,2.72 > 2004,2.15 > 2005,2.97 > 2006,-0.42 > 2007,-2.82 > 2008,-2.70 > 2009,1.20 > 2010,3.00 > </values> > </data> > </mugl> > > -- > Jesse Enloe > Physical Scientist > > Climate Monitoring Branch > National Climatic Data Center > 151 Patton Ave. > Asheville, NC 28801-5001 > > jes...@no... > (828) 271-4100 > -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |
From: Jesse E. <jes...@no...> - 2010-11-18 15:23:29
|
I'm getting a flash error that it cannot render the downfill color from the mugl below. However, the interactive tester says the mugl is valid. <?xml version="1.0"?> <mugl> <title base="0 1" anchor="0 1" border="0" position="0 5" frame="padding"> Alabama, Palmer Hydrological Drought Index (PHDI), October-September 1896-2010 </title> <background> <img anchor="0 0" base="-1 1" position="65 75" frame="plot" src="/images/noaabk.gif" /> </background> <legend base="0 1" anchor="0 1" rows="1" position="0 -15" border="0" frame="padding" visible="false"> <icon border="0" /> </legend> <window border="0" padding="5" margin="2" /> <plotarea marginbottom="35" marginleft="35" margintop="35" marginright="35" /> <!-- horizontal axis --> <horizontalaxis id="xaxis" min="1896" max="2010" tickmin="-4" tickmax="0" linewidth="0" highlightstyle="labels"> <title></title> <pan min="1891" max="2015" /> </horizontalaxis> <!-- primary vertical axis --> <verticalaxis id="primary-y" type="number" min="-5.63" max="4.01"> <grid /> <title angle="90" anchor="0 -1">PHDI</title> <pan min="-5.07" max="4.41" /> <binding id="y-binding" min="-5.63" max="4.01" /> </verticalaxis> <!-- secondary vertical axis --> <verticalaxis id="secondary-y" type="number" linewidth="1" highlightstyle="labels" base="1 -1"> <title angle="270" anchor="1 0">PHDI</title> <binding id="y-binding" min="-5.63" max="4.01" /> <pan min="-5.07" max="4.41" /> </verticalaxis> <plot> <horizontalaxis ref="xaxis"> <variable ref="time"/> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="Palmer Hydrological Drought Index (PHDI)" /> </verticalaxis> <renderer type="bar"> <option name="fillcolor" value="0xffaa00" max="0" /> <option name="fillcolor" value="0x008800" min="0" /> <option name="downfillcolor" value="0x000000ff" /> <option name="hidelines" value="2" /> <option name="barwidth" value="1" /> <option name="baroffset" value="0" /> <option name="barbase" value="0" /> </renderer> </plot> <data> <variables> <variable column="0" id="time" /> <variable column="1" id="Palmer Hydrological Drought Index (PHDI)" type="number" /> </variables> <values> 1896,-2.82 1897,-4.17 1898,-5.53 1899,-3.07 1900,-1.76 1901,-0.05 1902,-1.39 1903,-1.94 1904,-3.62 1905,-3.83 1906,-2.41 1907,-0.94 1908,-0.84 1909,-1.18 1910,-2.55 1911,-3.22 1912,-0.43 1913,-0.20 1914,-3.16 1915,-2.99 1916,-1.24 1917,-0.84 1918,-2.00 1919,1.48 1920,1.15 1921,-1.63 1922,-2.86 1923,-2.15 1924,-1.21 1925,-3.94 1926,-3.28 1927,-2.45 1928,-1.75 1929,0.47 1930,-1.08 1931,-2.82 1932,-2.66 1933,0.72 1934,-2.56 1935,-0.42 1936,-0.34 1937,-1.27 1938,-0.34 1939,-0.35 1940,0.02 1941,-2.14 1942,-1.39 1943,-0.49 1944,-0.57 1945,-1.24 1946,1.53 1947,2.30 1948,0.18 1949,2.35 1950,-0.53 1951,-1.04 1952,-2.07 1953,-1.76 1954,-2.08 1955,-3.84 1956,-2.61 1957,-1.10 1958,1.03 1959,-0.51 1960,0.32 1961,1.51 1962,1.56 1963,-1.62 1964,0.43 1965,0.47 1966,-0.49 1967,-0.11 1968,0.73 1969,-1.30 1970,-0.18 1971,1.07 1972,0.42 1973,2.06 1974,2.09 1975,3.48 1976,3.91 1977,0.90 1978,0.80 1979,0.98 1980,2.65 1981,-1.73 1982,-0.32 1983,2.13 1984,2.10 1985,-0.44 1986,-1.59 1987,-0.30 1988,-1.95 1989,1.59 1990,2.80 1991,0.20 1992,0.55 1993,1.46 1994,0.59 1995,0.86 1996,2.27 1997,2.11 1998,2.32 1999,-0.32 2000,-2.82 2001,-1.07 2002,0.04 2003,2.72 2004,2.15 2005,2.97 2006,-0.42 2007,-2.82 2008,-2.70 2009,1.20 2010,3.00 </values> </data> </mugl> -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |
From: Mark P. <mph...@un...> - 2010-11-18 00:49:00
|
Hi Folks, Just FYI, I released a new version (3.2rc1) of Multigraph today; it includes support for background images and colors. Also, I've set up the page http://www.multigraph.org/uitests for the purpose of experimentation and feedback on possible alternative mouse event handling schemes in Multigraph. If you've ever gotten annoyed by Multigraph "selecting" an axis unintentionally as you move the mouse around, this page is for you. Check it out, and let me know what you think! --Mark |
From: Jesse E. <jes...@no...> - 2010-11-09 20:18:12
|
Is there a way to set a background image for the plot in Multigraph? Thanks, Jesse -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |
From: Mark P. <mph...@un...> - 2010-08-09 15:58:12
|
Jesse, In your HTML, where you have <param name="src" value="/climate-monitoring/multigraph/Multigraph/Multigraph.swf" /> try changing "src" to "movie", and see if that fixes it for IE 8. --Mark On Mon, Aug 9, 2010 at 10:30 AM, Mark Phillips <mph...@un...> wrote: > OK. It fails for me in IE 8 too (I was using IE 7 earlier). > > My guess is that there is something about the <object> / <embed> tags in > the HTML page that needs to be modified for IE 8. I will look into it and > let you know when I figure something out, but in the meantime you might try > googling for information on the correct way to display a Flash app in IE 8; > let me know if you find anything! > > If there's anyone else on this list who has had success displaying > Multigraph in IE 8, maybe they can tell us what was involved! > > --Mark > > > On Mon, Aug 9, 2010 at 10:11 AM, Jesse Enloe <jes...@no...> wrote: > >> ie 8. i even tried it in compatibility mode. >> >> >> On Mon, Aug 9, 2010 at 9:55 AM, Mark Phillips <mph...@un...> wrote: >> >>> Jesse, >>> >>> I just loaded that page in IE and it worked fine. What version of IE are >>> you using? >>> >>> --Mark >>> >>> On Mon, Aug 9, 2010 at 9:11 AM, Jesse Enloe <jes...@no...>wrote: >>> >>>> i'm having issues displaying multigraph in ie: >>>> >>>> >>>> http://www.ncdc.noaa.gov/temp-and-precip/uspa/?area=warm-cold&year=2010&month=7 >>>> >>>> please advise. >>>> >>>> thanks, >>>> jesse >>>> >>>> -- >>>> Jesse Enloe >>>> Physical Scientist >>>> >>>> Climate Monitoring Branch >>>> National Climatic Data Center >>>> 151 Patton Ave. >>>> Asheville, NC 28801-5001 >>>> >>>> jes...@no... >>>> (828) 271-4100 >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by >>>> >>>> Make an app they can't live without >>>> Enter the BlackBerry Developer Challenge >>>> http://p.sf.net/sfu/RIM-dev2dev >>>> _______________________________________________ >>>> Multigraph-users mailing list >>>> Mul...@li... >>>> https://lists.sourceforge.net/lists/listinfo/multigraph-users >>>> >>>> >>> >> >> >> -- >> Jesse Enloe >> Physical Scientist >> >> Climate Monitoring Branch >> National Climatic Data Center >> 151 Patton Ave. >> Asheville, NC 28801-5001 >> >> jes...@no... >> (828) 271-4100 >> > > |
From: Mark P. <mph...@un...> - 2010-08-09 14:36:55
|
OK. It fails for me in IE 8 too (I was using IE 7 earlier). My guess is that there is something about the <object> / <embed> tags in the HTML page that needs to be modified for IE 8. I will look into it and let you know when I figure something out, but in the meantime you might try googling for information on the correct way to display a Flash app in IE 8; let me know if you find anything! If there's anyone else on this list who has had success displaying Multigraph in IE 8, maybe they can tell us what was involved! --Mark On Mon, Aug 9, 2010 at 10:11 AM, Jesse Enloe <jes...@no...> wrote: > ie 8. i even tried it in compatibility mode. > > > On Mon, Aug 9, 2010 at 9:55 AM, Mark Phillips <mph...@un...> wrote: > >> Jesse, >> >> I just loaded that page in IE and it worked fine. What version of IE are >> you using? >> >> --Mark >> >> On Mon, Aug 9, 2010 at 9:11 AM, Jesse Enloe <jes...@no...> wrote: >> >>> i'm having issues displaying multigraph in ie: >>> >>> >>> http://www.ncdc.noaa.gov/temp-and-precip/uspa/?area=warm-cold&year=2010&month=7 >>> >>> please advise. >>> >>> thanks, >>> jesse >>> >>> -- >>> Jesse Enloe >>> Physical Scientist >>> >>> Climate Monitoring Branch >>> National Climatic Data Center >>> 151 Patton Ave. >>> Asheville, NC 28801-5001 >>> >>> jes...@no... >>> (828) 271-4100 >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by >>> >>> Make an app they can't live without >>> Enter the BlackBerry Developer Challenge >>> http://p.sf.net/sfu/RIM-dev2dev >>> _______________________________________________ >>> Multigraph-users mailing list >>> Mul...@li... >>> https://lists.sourceforge.net/lists/listinfo/multigraph-users >>> >>> >> > > > -- > Jesse Enloe > Physical Scientist > > Climate Monitoring Branch > National Climatic Data Center > 151 Patton Ave. > Asheville, NC 28801-5001 > > jes...@no... > (828) 271-4100 > |
From: Mark P. <mph...@un...> - 2010-08-09 13:55:59
|
Jesse, I just loaded that page in IE and it worked fine. What version of IE are you using? --Mark On Mon, Aug 9, 2010 at 9:11 AM, Jesse Enloe <jes...@no...> wrote: > i'm having issues displaying multigraph in ie: > > > http://www.ncdc.noaa.gov/temp-and-precip/uspa/?area=warm-cold&year=2010&month=7 > > please advise. > > thanks, > jesse > > -- > Jesse Enloe > Physical Scientist > > Climate Monitoring Branch > National Climatic Data Center > 151 Patton Ave. > Asheville, NC 28801-5001 > > jes...@no... > (828) 271-4100 > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Multigraph-users mailing list > Mul...@li... > https://lists.sourceforge.net/lists/listinfo/multigraph-users > > |
From: Jesse E. <jes...@no...> - 2010-08-09 13:41:09
|
i'm having issues displaying multigraph in ie: http://www.ncdc.noaa.gov/temp-and-precip/uspa/?area=warm-cold&year=2010&month=7 please advise. thanks, jesse -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |
From: Mark P. <mph...@un...> - 2010-08-06 14:03:20
|
Kip, I got your MUGL file and checked it out, and it turns out that there was a bug in Multigraph that caused constant lines to fail in some situations but not others --- that's why my test worked, but it didn't work for you. In any case, I released a new version of Multigraph yesterday that fixes the bug, so try downloading the latest version and let me know if you have any problems. --Mark |
From: Mark P. <mph...@un...> - 2010-08-04 19:47:28
|
Hmm. I'm not sure what is going on. You are correct that it should work, and I just pasted your snippet below into a mugl file and tested it with the current Multigraph version, and it seemed to work fine. If you can send your complete MUGL file I'll take a look and see if I can tell what is going wrong. --Mark On Wed, Aug 4, 2010 at 2:22 PM, Smith, Kip <kip...@nv...> wrote: > I downloaded and installed the latest revision of > Multigraph yesterday and now the constant line in my code doesn't work. > > > > > > <plot> > > <legend label="Battery Voltage"/> > > <horizontalaxis ref="date"> > > <variable ref="date"/> > > </horizontalaxis> > > <verticalaxis ref="bv"> > > <constant value="10"/> > > </verticalaxis> > > <renderer type="pointline"> > > <option name="linecolor" value="0x000000"/> > > <option name="linewidth" value="1"/> > > </renderer> > > </plot> > > > > > > The line of concern is: <constant value="10"/>. According to the > documentation this should still be OK. Why is this now a problem? > > > > > > > > Kip Smith > > kip...@no... > > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Multigraph-users mailing list > Mul...@li... > https://lists.sourceforge.net/lists/listinfo/multigraph-users > > |
From: Smith, K. <kip...@nv...> - 2010-08-04 18:21:56
|
I downloaded and installed the latest revision of Multigraph yesterday and now the constant line in my code doesn't work. <plot> <legend label="Battery Voltage"/> <horizontalaxis ref="date"> <variable ref="date"/> </horizontalaxis> <verticalaxis ref="bv"> <constant value="10"/> </verticalaxis> <renderer type="pointline"> <option name="linecolor" value="0x000000"/> <option name="linewidth" value="1"/> </renderer> </plot> The line of concern is: <constant value="10"/>. According to the documentation this should still be OK. Why is this now a problem? Kip Smith kip...@no... |
From: Mark P. <mph...@un...> - 2010-08-02 18:32:49
|
Hi Everybody: I would like to add a feature to Multigraph that requires Flash Player 10, as opposed to 9. If/when this feature is added, new versions of Multigraph will no longer work with Flash Player 9. Up till now, even though Flash Player 10 has been out for a long time and almost all users are probably using it, Multigraph actually only required version 9. When the new feature is added, though, Multigraph will no longer work with version 9 at all. (It won't be just the new feature that doesn't work --- Multigraph will require version 10 to run at all). Also, if you are using the Multigraph Flex component (the SWC file), you'll have to compile your project with version 4 of the Flex SDK. This is a slightly bigger deal than the requirement of Flash Player version 10, because upgrading to the Flex 4 SDK can be a hassle in some cases. Before making the change, though, I want to ask if anyone has any objections. If there are major concerns, we could consider having two copies of the multigraph distribution: one compiled with Flex SDK 4 for player version 10, and one compiled with SDK 3 for player version 9 (minus any features that require SDK 4). It'd be a fair amount of work to do that, though, so I'd rather not bother unless someone really thinks it's a big deal. If you have thoughts about this, let me know in the next day or so. If I don't hear any objections, the next release of Multigraph will be compiled with SDK 4 and will require Flash Player version 10. (All of this will only affect new releases of Multigraph, by the way; obviously whatever SWF or SWC file(s) you are currently using will continue to work as always. The changes will only affect you when you replace your copy with a newer one.) --Mark |
From: Egg D. <Jes...@no...> - 2010-07-20 15:34:28
|
Found an easy fix -- mouseout events trigger Axis.as to call _graph.prepareData(), so if I manually call prepareData() when I change dataMin or dataMax, I get the immediate gratification I was looking for. I wonder whether it might be good to have pan/zoom events call prepareData(). -Egg Egg Davis wrote: > Hey, > > I've found an odd little quirk in MG when used as a component. If I > programmatically change dataMin or dataMax, the axis is immediately > resized to fit. But new data are not loaded until the cursor is moved > outside the MG component. In fact, if the cursor is outside the > component when the change occurs, it must be moved into and then out of > the component before a data update is triggered. > > I'm poking through the source to see if I can track it down, but I > thought I'd toss it out on the list before I get started. > > -Egg > > -- Egg Davis Applications Programmer, STG Inc. Contractor to the Government Climate Reference Network National Climatic Data Center 151 Patton Ave, Asheville NC 28801 jes...@no... (828) 271-4656 |
From: Egg D. <Jes...@no...> - 2010-07-20 15:27:17
|
Hey, I've found an odd little quirk in MG when used as a component. If I programmatically change dataMin or dataMax, the axis is immediately resized to fit. But new data are not loaded until the cursor is moved outside the MG component. In fact, if the cursor is outside the component when the change occurs, it must be moved into and then out of the component before a data update is triggered. I'm poking through the source to see if I can track it down, but I thought I'd toss it out on the list before I get started. -Egg -- Egg Davis Applications Programmer, STG Inc. Contractor to the Government Climate Reference Network National Climatic Data Center 151 Patton Ave, Asheville NC 28801 jes...@no... (828) 271-4656 |
From: Mark P. <mph...@un...> - 2010-06-24 16:13:12
|
Egg, This would indeed be useful --- it's something I've thought about, but haven't had the time to do anything with those thoughts. I think the modifications to the code to add this functionality would be fairly minimal; I'd be happy to look at putting it into the next release, but in the meantime, if you want to poke around with it yourself in your copy, here is what I think would be involved: 1. In Multigraph.mxml 1. create a public array var called graphs 2. in createGraphs(), store the pointers to the created Graph objects in the graphs array. Note that there are potentially more than 1 Graph objects in a Multigraph object. In practice, with most MUGL files, there is just one, but there is the potential for more than one, delimited by <graph>...</graph> tags. 2. In Graph.as, create a public getter function for the _axes array; note that this is an array of all of the axes in the graph, both horizontal and vertical. (Graph.as also has separate arrays for the vertical and horizontal axes separately, but I think for what you want to do, the combined list would be simpler to work with.) With those modifications, you should be able to do something like this in your code: var m:Multigraph = new Multigraph(...); ... var axisMins:Array = []; var axisMaxs:Array = []; for (i=0; i<m.graphs[0].axes.length; ++i) { axisMins[i] = m.graphs[0].axes[i].dataMin; axisMaxs[i] = m.graphs[0].axes[i].dataMax; } ... var n:Multigraph = new Multigraph(...); // load new Multigraph from MUGL file corresponding to different station ... for (i=0; i<n.graphs[0].axes.length; ++i) { n.graphs[0].axes[i].dataMin = axisMins[i]; n.graphs[0].axes[i].dataMax = axisMaxs[i]; } I haven't actually tried this, so it may turn out that a lot more is needed; if you try it, let me know how it goes! I'll be glad to sit down with you and work on this together sometime soon if you want, but it'll probably need to wait till next week; I'm tied up the rest of today and tomorrow. --Mark On Wed, Jun 23, 2010 at 11:23 AM, Egg Davis <Jes...@no...> wrote: > Hi, > > I'm looking for a way to pull the axis bounds out of the multigraph > component so that the containing app can reload (with, say, a different > station) while maintaining the existing bounds. As far as I can tell > there's not any way to do so. Am I missing something? Seems like it > might be useful functionality. > > Thanks, > Egg > > -- > Egg Davis > Applications Programmer, STG Inc. > Contractor to the Government > Climate Reference Network > National Climatic Data Center > 151 Patton Ave, > Asheville NC 28801 > jes...@no... > (828) 271-4656 > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Multigraph-users mailing list > Mul...@li... > https://lists.sourceforge.net/lists/listinfo/multigraph-users > |
From: Egg D. <Jes...@no...> - 2010-06-23 16:23:17
|
Hi, I'm looking for a way to pull the axis bounds out of the multigraph component so that the containing app can reload (with, say, a different station) while maintaining the existing bounds. As far as I can tell there's not any way to do so. Am I missing something? Seems like it might be useful functionality. Thanks, Egg -- Egg Davis Applications Programmer, STG Inc. Contractor to the Government Climate Reference Network National Climatic Data Center 151 Patton Ave, Asheville NC 28801 jes...@no... (828) 271-4656 |
From: Jesse E. <jes...@no...> - 2010-06-16 14:18:02
|
well, i definitely want to keep the legend at the top, and i was really looking for a solution that could keep the legend only 1 row. but, i suppose the two row approach could work in instances where i'm representing more than 6 datasets; so, i'll just use that. thanks, jesse On Wed, Jun 16, 2010 at 9:58 AM, Mark Phillips <mph...@un...> wrote: > Hi Jesse, > > If you're just wondering about squeezing in a legend with 7 entries, I can > think of a couple options: > > 1. change the number of rows in the legend to 2, and increase the > plotarea's "margtintop" value to create space for it above the plot > 2. change the layout of the legend to be one column instead of one row, > and move it over to the right (or left) side of the plot, instead of above > it. Something like the following, for example: > <legend base="1 0" anchor="1 0" columns="1" position="0 0" > border="0" frame="padding" visible="true"> > with an appropriately large "marginright" value for the plotarea. > > --Mark > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Multigraph-users mailing list > Mul...@li... > https://lists.sourceforge.net/lists/listinfo/multigraph-users > > -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |
From: Mark P. <mph...@un...> - 2010-06-16 13:58:13
|
Hi Jesse, If you're just wondering about squeezing in a legend with 7 entries, I can think of a couple options: 1. change the number of rows in the legend to 2, and increase the plotarea's "margtintop" value to create space for it above the plot 2. change the layout of the legend to be one column instead of one row, and move it over to the right (or left) side of the plot, instead of above it. Something like the following, for example: <legend base="1 0" anchor="1 0" columns="1" position="0 0" border="0" frame="padding" visible="true"> with an appropriately large "marginright" value for the plotarea. --Mark |
From: Jesse E. <jes...@no...> - 2010-06-16 13:22:35
|
i'm having trouble representing all 7 datasets in my graph (mugl below). any helpful suggestions would be appreciated. thanks! <?xml version="1.0"?> <mugl> <legend base="0 1" anchor="0 1" rows="1" position="0 5" border="0" frame="padding" visible="true"> <icon border="0" height="35" width="8" /> </legend> <window border="0" padding="5" margin="2" /> <plotarea marginbottom="35" marginleft="35" margintop="35" marginright="35" /> <!-- horizontal axis --> <horizontalaxis id="Year" min="1940" max="2009" tickmin="-4" tickmax="0" linewidth="0" highlightstyle="labels"> <title>Year</title> <pan min="1935" max="2014" /> </horizontalaxis> <!-- primary vertical axis --> <verticalaxis id="primary-y" type="number" min="-1" max="1" linewidth="1" highlightstyle="labels"> <grid /> <labels format="%.1f" spacing="0.2 0.1" /> <title angle="90" anchor="0 -1">Anomaly (°C)</title> <pan min="-2" max="2" /> <binding id="y-binding" min="0" max="1" /> </verticalaxis> <!-- secondary vertical axis --> <verticalaxis id="secondary-y" type="number" linewidth="1" highlightstyle="labels" base="1 -1"> <labels format="%.1f" spacing="0.2 0.1" /> <pan min="-2" max="2" /> <binding id="y-binding" min="0" max="1" /> </verticalaxis> <!-- begin HadAT2 --> <plot> <legend label="HadAT2" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="HadAT2" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0x000000" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin IUK --> <plot> <legend label="IUK" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="IUK" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xeeee00" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin RAOBCORE --> <plot> <legend label="RAOBCORE" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="RAOBCORE" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xffaa00" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin RATPAC --> <plot> <legend label="RATPAC" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="RATPAC" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0x00ee00" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin RICH --> <plot> <legend label="RICH" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="RICH" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xaaaaaa" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin RSS --> <plot> <legend label="RSS" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="RSS" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0x99ccff" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- begin UAH --> <plot> <legend label="UAH" /> <horizontalaxis ref="Year"> <variable ref="time" /> </horizontalaxis> <verticalaxis ref="primary-y"> <variable ref="UAH" /> </verticalaxis> <renderer type="line"> <option name="linecolor" value="0xee0000" /> <option name="linewidth" value="1.5" /> <option name="missingvalue" value="-9999" /> <option name="missingop" value="eq" /> </renderer> </plot> <!-- data --> <data> <variables> <variable column="0" id="time" /> <variable column="1" id="HadAT2" /> <variable column="2" id="IUK" /> <variable column="3" id="RAOBCORE" /> <variable column="4" id="RATPAC" /> <variable column="5" id="RICH" /> <variable column="6" id="RSS" /> <variable column="7" id="UAH" /> </variables> <values> 1940,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1941,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1942,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1943,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1944,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1945,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1946,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1947,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1948,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1949,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1950,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1951,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1952,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1953,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1954,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1955,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1956,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1957,-9999,-9999,-9999,-9999,-9999,-9999,-9999 1958,-0.0583,-9999,-0.1658,-0.063,-0.1266,-9999,-9999 1959,0.0083,-0.1106,-0.1618,-0.173,-0.0802,-9999,-9999 1960,-0.125,-0.1808,-0.2385,-0.177,-0.1482,-9999,-9999 1961,-0.1,-0.1626,-0.1676,-0.124,-0.0895,-9999,-9999 1962,-0.225,-0.2346,-0.3185,-0.237,-0.2603,-9999,-9999 1963,-0.2833,-0.1853,-0.3403,-0.227,-0.3046,-9999,-9999 1964,-0.35,-0.376,-0.3989,-0.498,-0.3971,-9999,-9999 1965,-0.5583,-0.4062,-0.6357,-0.51,-0.6648,-9999,-9999 1966,-0.275,-0.22,-0.3462,-0.283,-0.3828,-9999,-9999 1967,-0.2833,-0.2564,-0.3495,-0.28,-0.3847,-9999,-9999 1968,-0.4083,-0.3449,-0.4399,-0.367,-0.4852,-9999,-9999 1969,-0.1417,-0.1422,-0.1859,-0.165,-0.235,-9999,-9999 1970,-0.2167,-0.1362,-0.2359,-0.159,-0.2972,-9999,-9999 1971,-0.55,-0.3831,-0.4894,-0.433,-0.5453,-9999,-9999 1972,-0.3583,-0.2339,-0.3185,-0.256,-0.3455,-9999,-9999 1973,-0.0667,0.0351,-0.054,0.017,-0.0866,-9999,-9999 1974,-0.3083,-0.3056,-0.3098,-0.34,-0.3491,-9999,-9999 1975,-0.35,-0.2216,-0.4172,-0.294,-0.4333,-9999,-9999 1976,-0.6,-0.4443,-0.5638,-0.523,-0.5721,-9999,-9999 1977,-0.125,-0.0197,-0.1238,-0.022,-0.142,-9999,-9999 1978,-0.125,-0.0999,-0.134,-0.113,-0.1526,-9999,-9999 1979,0,0,0,0,0,0,0 1980,0.1417,0.125,0.0665,0.156,0.0629,0.113,0.161 1981,0.1083,0.1366,0.048,0.159,0.0475,0.107,0.113 1982,-0.0583,-0.0721,-0.137,-0.095,-0.1345,-0.075,-0.08 1983,0.1083,0.1293,0.0316,0.055,0.0589,0.162,0.109 1984,-0.1333,-0.1119,-0.2119,-0.153,-0.1952,-0.128,-0.184 1985,-0.1417,-0.0739,-0.2269,-0.111,-0.1964,-0.162,-0.141 1986,-0.05,-0.072,-0.1192,-0.06,-0.11,-0.041,-0.075 1987,0.1833,0.1947,0.1398,0.18,0.16,0.197,0.182 1988,0.2417,0.2314,0.1227,0.223,0.185,0.165,0.181 1989,0.15,0.0453,0.0003,-0.015,0.0713,-0.021,-0.038 1990,0.3417,0.2623,0.2116,0.224,0.2633,0.173,0.147 1991,0.2083,0.2395,0.117,0.18,0.1499,0.179,0.193 1992,-0.025,-0.0787,-0.1361,-0.095,-0.1232,-0.081,-0.12 1993,0.0417,0.029,0.0028,-0.033,0.0169,-0.019,-0.077 1994,0.1,0.1172,0.1188,0.135,0.1298,0.126,0.06 1995,0.1583,0.1646,0.1287,0.219,0.1549,0.257,0.183 1996,0.0667,0.0777,0.0591,0.06,0.0828,0.145,0.094 1997,0.1167,0.089,0.1021,0.098,0.1109,0.2,0.119 1998,0.6833,0.5806,0.6398,0.593,0.6342,0.649,0.586 1999,0.1917,0.1657,0.1926,0.162,0.1879,0.185,0.112 2000,0.2,0.0856,0.1471,0.08,0.1356,0.18,0.107 2001,0.3,0.2299,0.2755,0.284,0.2683,0.342,0.272 2002,0.4667,0.3648,0.4102,0.408,0.4064,0.433,0.386 2003,0.5,0.3771,0.4116,0.42,0.4041,0.456,0.348 2004,0.3583,0.3431,0.3473,0.322,0.3381,0.349,0.266 2005,0.5583,0.4376,0.4551,0.555,0.4538,0.473,0.412 2006,0.4667,-9999,0.4243,0.468,0.4133,0.376,0.334 2007,0.5167,-9999,0.4434,0.467,0.4227,0.406,0.355 2008,0.225,-9999,0.1412,0.209,0.1352,0.19,0.121 2009,0.4083,-9999,0.3332,0.413,0.3248,0.358,0.334 </values> </data> </mugl> -- Jesse Enloe Physical Scientist Climate Monitoring Branch National Climatic Data Center 151 Patton Ave. Asheville, NC 28801-5001 jes...@no... (828) 271-4100 |