Hi,
I am having some issues with the xml plot files. I want to generate a graph of susceptibility vs. magnetic field (gamma) for each of the lengths (L) used and each temperature (T). All the results from the simulations have been placed in the sqlite achive files results.db. The plot file I am trying to use is
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plot SYSTEM "conf/plot.dtd"> <plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </for-each> </plot>
However when I try to use this with the command
archive --verbose --command=plot --db-file=results.db --plot-file=plot_example.xml --output-path=.
I get the following
The Plotfile does not match the DTD! Fails parsing at: for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </for-each> </plot>
By taking out the second for-each tag and using
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plot SYSTEM "conf/plot.dtd"> <plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </plot>
it works but the graph does not make sense. I have also tried adding a constraint to pick out one particular temperature.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plot SYSTEM "conf/plot.dtd"> <plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> <constraint name="T" condition="=0.1" /> </for-each> </plot>
This leads to the same error and says parsing fails at the same point. I am using ALPS 1.3b6. Any help is greatly appreciated.
Regards,
Niall.
Would it be possible for you to send the files you are working on?
On 26 Sep 2007, at 11:47, Niall Moran wrote:
Hi,
I am having some issues with the xml plot files. I want to generate a graph of susceptibility vs. magnetic field (gamma) for each of the lengths (L) used and each temperature (T). All the results from the simulations have been placed in the sqlite achive files results.db. The plot file I am trying to use is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </for-each> </plot>
However when I try to use this with the command
archive --verbose --command=plot --db-file=results.db --plot- file=plot_example.xml --output-path=.
I get the following
The Plotfile does not match the DTD! Fails parsing at: for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each>
</for-each> </plot>
By taking out the second for-each tag and using
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </plot>
it works but the graph does not make sense. I have also tried adding a constraint to pick out one particular temperature.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> <constraint name="T" condition="=0.1" /> </for-each> </plot>
This leads to the same error and says parsing fails at the same point. I am using ALPS 1.3b6. Any help is greatly appreciated.
Regards,
Niall.
Dear Niall Moran,
From: Niall Moran nmoran@thphys.nuim.ie Date: Wed, 26 Sep 2007 10:47:00 +0100
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </for-each> </plot>
Currently, nested for-each tags are not supported by "archive" tool.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> <constraint name="T" condition="=0.1" /> </for-each> </plot>
The 7th line should be
<constraint name="T" type="parameter" operator="equal" value"0.1" />
Best regards, Synge Todo
Thanks for you replies.
Niall.
Synge Todo wrote:
Dear Niall Moran,
From: Niall Moran nmoran@thphys.nuim.ie Date: Wed, 26 Sep 2007 10:47:00 +0100
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <for-each name="T" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> </for-each> </for-each> </plot>
Currently, nested for-each tags are not supported by "archive" tool.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plot SYSTEM "conf/plot.dtd">
<plot name="Susceptibility versus Magnetic Field" output="xmgr"> <for-each name="L" > <xaxis name="Gamma" type="parameter" /> <yaxis name="Susceptibility" type="mean" error="true" /> <constraint name="T" condition="=0.1" /> </for-each> </plot>
The 7th line should be
<constraint name="T" type="parameter" operator="equal" value"0.1" />
Best regards, Synge Todo
comp-phys-alps-users@lists.phys.ethz.ch