Welcome to Golden Software Support

plot styles

Comments

6 comments

  • Avatar
    Leslie McWhirter

    Hi Doug,

    There are a few different ways you can apply the same formatting to numerous plots, depending on the state of your project currently. 

    • If you have two plots in the project and one already has the desired formatting:
      Use the Copy Format command to copy the formatting of one plot, and then use the Paste Format command to paste that formatting to another plot.
    • If you have two plots in the project and you haven't yet performed the desired formatting on either:
      Use the script recorder to record performing the changes, and then update the item number in the script and run it so it makes the same changes to the other plot.
    • If you have one plot in the project and you want to use that same formatting for a plot that hasn't yet been created, but will be in its own project:
      Save the file as a GRT template file.

    All three of these methods will be discussed in next week's free webinar. You can register here if you would like to attend.

    Thanks!

    Leslie

    0
    Comment actions Permalink
  • Avatar
    Doug Wahl

    Leslie, thanks for the reply.  These methods all work for grapher which is a great help for that program, but if I need to do the same thing in surfer or voxler, what is a comparable approach?  I imagine I could probably work something up in surfer's scripting module, but there is no recording option there that I can see, and the syntax is somewhat different.  Is there another approach?

    0
    Comment actions Permalink
  • Avatar
    Leslie McWhirter

    Hi Doug,

    Surfer and Voxler don't have these three options (Copy Format, Script Recorder, or Templates). I've added your vote for these to our suggestion file. In the meantime, other than writing a script from scratch to do the desired formatting, my only suggestion would be to make your changes and save the project file, and then when you're ready for the next project, open that file, save to a new name, and replace the data with a new file.

    Thanks,

    Leslie

    0
    Comment actions Permalink
  • Avatar
    Fang Xia

    Hi Leslie,

    I have exactly the same problem. Is this feature available in the new update? I have surfer 15 at the moment.

    I have used Surfer for 6 years to make many 3D surface plots with the same style. It has been very time consuming and tedious to set parameters to every plot. I had to adjust about 20 parameters manually for every plot. I tried to change parameters in Defaults, the 'surfer.set' file, but most parameter values can not be set there. Many are indicated as 'internal default' but where can I change these internal default? I don't know how to change the view angle, the projection (I want orthographic but the default is perspective), the scale, the limits (xMin, xMax, yMin, yMax), the axis ticks, labels, the font size, show or not show color scale, the color scale type, the lighting, etc etc.

     

    How does your suggested method work by saving a project file and replace the data with a new file? File file for making the 3D surface is a grid file made from xyz dataset.

    I never used script. If I must use script to realise this, is there a tutorial for learning script?

    Many thanks.

    0
    Comment actions Permalink
  • Avatar
    Leslie McWhirter

    Hello Fang,

    I've reiterated your questions below in italics and then answered them.

    • "Is this feature available in the new update? I have surfer 15 at the moment."

      No, these three options are not available in Surfer 15. I will add your vote for these to our suggestion file so we can notify you when they are available.

    • "I tried to change parameters in Defaults, the 'surfer.set' file, but most parameter values can not be set there. Many are indicated as 'internal default' but where can I change these internal default? I don't know how to change the view angle, the projection (I want orthographic but the default is perspective), the scale, the limits (xMin, xMax, yMin, yMax), the axis ticks, labels, the font size, show or not show color scale, the color scale type, the lighting, etc etc."

      For Defaults, you don't change the internal default, you set a new value to use instead of the internal default. For certain things, like limits and axes min and max ticks, you just type a value into the Setting value box. For others, the Setting value is a dropdown with options to choose from. If neither of these is the case (such as for symbol and font properties), see this help page for the syntax: Formats for Attribute Values

    • "How does your suggested method work by saving a project file and replace the data with a new file? File file for making the 3D surface is a grid file made from xyz dataset."

      To replace your grid file with a new one:
      1. Open your SRF file in Surfer.
      2. Grid your new data file (Home | Grid Data | Grid Data).
      3. Select your 3D Surface layer in the Contents window.
      4. On the General page in the Properties window, click the open file icon in the Grid file field.
      5. In the Open Grid dialog, select your new grid file and click Open.
      6. If prompted to convert the coordinate system of the new grid, click OK.
      7. Click File | Save As
      8. Enter a new name for your file and click Save.

    • "I never used script. If I must use script to realise this, is there a tutorial for learning script?"

      We have many scripting resources you can utilize to help you write and debug your Surfer scripts:

     

    Thanks,

    Leslie

    0
    Comment actions Permalink
  • Avatar
    Fang Xia

    Hi Leslie, thanks so much. You solved my problem.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.