Menu

multiplot of .plt files ?

Help
2017-02-28
2017-02-28
  • Quentin MOLIN

    Quentin MOLIN - 2017-02-28

    Hello everyone !
    I am trying to "multiplot" 2 .plt files which are working fine: 'gnuplotfile1.plt' and 'gnuplotfile2.plt'
    Here is my attempt to do so:

    set title "test_multiplot"
    set multiplot layout 1,2
    
        plt1='C:\[...]\gnuplotfile1.plt'
        plt2='C:\[...]\gnuplotfile2.plt'
    
        load plt1,\
                 plt2,
    
    unset multiplot
    

    Gnu plot says that he "Cannot find or open the data files" i use in 'gnuplotfile1.plt'
    I still see plt1 getting loaded on a multiplot graph that unfortunatly close immediatly.

    1st question, can we use the load command with multiplot ?
    2nd question, is my 'test_multiplot.plt' code correct or am I missing something?

    I am working on windows.
    If you can help me then thankyou very much !

    Quentin.

     
  • Bastian Märkisch

    If your plot commands do not "find" the data files you might have to change directories or modify your paths, see pwd and cd.
    load executes a script file, so in principle the idea of your snippet works. But load accepts a single file name only. Instead use:

    ...
    load plt1
    load plt2
    ...
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.