Hi,
----- Ursprüngliche Mail ----- > Von: "P.Canepa" <[email protected]> > An: [email protected], [email protected], > [email protected] > Gesendet: Freitag, 9. Juli 2010 16:40:39 > Betreff: [Jmol-users] Problems having two flot graphs in the same page > Dear all, > it is possible to use two flot graphs in the same page? did anyone try > it before? > > Bob regarding your function plotEnergies if I create a similar one > which point to another div, do you think is going to work along > plotEnergies (see the page I sent you)? > I got the plotEnergies working as you saw yesterday, when I put the > second one I cannot see the grid ! For sake of clarity I create > another equivalent function as $ which I called $grad > some guesswork here as I don't have the page... The function named '$' is from jQuery (http://jquery.com/) and your function 'grad$' does not replicate the functionality of '$'. If you do $('#someid') you get the dom element with id 'someid'. Then doing $('#someid').addClass('someclass') means you call the method 'addClass' on the return value from $('#someid'), the dom element with id 'someid'. The method 'addClass' then adds 'someclass' to the dom element. The flot plugin extends the functionality of the jQuery object/function '$' by a method called 'plot', which you can call with $.plot( somearguments ). It seams you have some problems with the syntax. Best Alex > function grad$() { > // document ready function > if (!appletPrintable )grad$("#appletdiv1 ").addClass ("noprint ") > } > > and is linked to the new div called appletdiv1 as well as the command > which should plot the > graph point to a new div called plotarea1 (see below) rather than > plotare a that you see in the page you got yesterday. > > theplot = grad$.plot (grad$("#plotarea1 "), data, options); > > > Do you have any clue? Do I use improperly the recursion in function > grad$? Is the syntax wrong there ? > > > I got another question, I would like to work out the list of elements > I got in my structure, can I use getProperty atomList (atom > expression)? > In the field atom expression what am I supposed to enter ? > > Thanks a lot , Piero > > -- > Please consider the environment before printing this e-mail. > > Pieremanuele Canepa > Room 104 > Functional Material Group > School of Physical Sciences, Ingram Building, > University of Kent, Canterbury, Kent, > CT2 7NH > United Kingdom > > e-mail: [email protected] > mobile: +44 (0) 7772-9756456 > ----------------------------------------------------------- > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Jmol-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jmol-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

