In Origin, users can use Copy and Paste Format to apply graph customizations such as plot, axis, tick labels, and etc., from one graph to another by using the copy and paste format feature. This is a huge time saving feature so users don’t have to customize each graph manually.
Formats are basically properties of graphing elements inside the graph window. Origin graph is organized in page -> layer (axis) -> plot together with objects in graph such as legend, text, image, rectangle, circle, etc. Depending on where you click, different format can be copied and pasted to.
Paste Format (Advanced)… is provided for user to view what’s being copied, modify or delete some unwanted properties, adjusting the applying scope so user can apply the format to multiple graphs, and eve save the format as a graph theme file for future use.
This blog will show some examples so user can better understand the feature and its benefits. Please download the project file attached and open it to follow along.
Copy Plot Formats
- Go to 1. Line_Symbol folder of the attached project. Graph1 is a customized line+symbol plot. E.g. line and symbol color, symbol shape, no gap between symbols, skip points so every 5th point shows in graph.
- Right click on the plot and choose Copy Format.
- The plot in Graph2 is the same plot type. Right click on the plot and choose Paste Format to and choose one format e.g. Symbol Size and then Symbol Shape to apply one by one, or choose All to paste all formats. If a plot is selected, it will paste to it.
- If no plot is selected, the behavior is a little different. E.g. the plot in Graph3 is same plot type as well. Right click in white area this time, Paste Format To shows an extra level to choose apply to All Line Symbol Plots 、 All Plot Types that may apply. Choose All Line Symbol Plots: All to paste.
- The plot in Graph4 is line plot. Right click on the plot and choose Paste Format To to paste line formats or when right click in white area, choose Paste Format To: All: All to paste line plot formats. Please note that Paste format can’t change plot type from one to another.
- The plot in Graph5 is scatter plot. Right click on the plot and choose Paste Format To: All: All. It only pastes symbol size. So as you can see, paste between different plot types doesn’t always work. We don’t recommend this. The good thing is we support undo. So you can press Ctrl+Z to undo it.
- There are multiple plots in Graph6 and they are grouped. If you double click it to open Plot Details. There is a Group tab that controls plot properties for each member of the group. E.g. the symbol shape, color, etc. are set to increment for each member of the group. We don’t support copy single plot’s format to a group of plots.
- There are also multiple plots in Graph7, but they are not grouped. You may even notice they are different plot types. You can right click on the bottom line+symbol plot (same plot type) and choose Paste Format to it since they match. Or you can right click in white area in graph and choose Paste Format To: All Line Symbol Plots: All to apply format to the line+symbol plot only. If you choose Paste Format To: All: All, for line plot, it will apply line format, for symbol plot, only symbol size is pasted, same as what happened on Graph5.
- Copy format between different plot types may not always work.
- Copy format from single plot to group or vice versa doesn’t work.
- This also works for complicated graph types such as contour, etc. such as copy colormap level and color palette, etc.
Box chart has many variations and styles and it’s tricky to customize it. Or you may get a nice looking box chart graph in Origin made by others. The Copy format feature will help get desired look of box chart quickly.
Please note that all box charts in one layer shares the same format so it’s actually a layer level format.
- Go to 2. Box Chart folder in the project.
- The graph on the left has been customized such as show data points on notched box, mean point is a solid square, whiskers is 10-90, also each box is filled with different color.
- Left click within white area of layer to select the layer. Right click and choose Copy Format: Box/Histogram.
- Right click within the right graph and choose Paste Format. All the statistics settings are pasted.
- That box color not copied over since it’s belongs to Style instead of Box/Histogram.
- Go back to Graph on the left, repeat step3 to copy format but this time choose Copy Format: Color.
- Go to Graph on the right and paste format again.
- Undo the two paste formats. Instead of copying each format, now let’s copy all format. On left graph, left click within white area of layer to select the layer. Right click and choose Copy Format: All.
- With right graph active, choose Edit: Paste Format (Advanced)… or right click and choose Paste Format (Advanced)…
- In the dialog, uncheck All under Formats to Apply.
- Only check Box/Histogram 、 Color and click Apply. It will apply stats settings and color together.
Copy Axis Formats
Please go back to Line_Symbol folder of the project. The left Y axis is from 0-325. Tick Label color is blue. The Axis title font size is bigger. Also there is frame around the axis. We will demonstrate copy scale, tick label and frame below.
- Right click Y axis line in Graph1 and choose Copy Format: Scale.
- Right click Y axis line in Graph2 and choose Paste Format To and choose Scales or All. The scale will be applied to the selected Y axis. Note: you can also right click bottom x axis line and paste the scale to x axis.
- In Graph3, with no axis is selected, right click within graph, Paste Format to: will give options of which axis to apply the format.
- Right click within graph and choose Paste Format (Advanced)…. or choose Edit: Paste Format (Advaced)… menu. Set Apply Scope to All Graphs in this Folder and set Apply to as Left Axes to apply the same axis scale to Y axis of all graphs.
- To copy both X and Y axis scales, single click within layer to select the layer (layer is defined by XY axes). Right click to choose Copy Format: Scale. Or just right click in white area within Graph window if there is only 1 layer and choose Copy Format: Scale.
- Then right click in graph and choose Paste Format to paste both XY axes scales. Or choose Edit: Paste Format (Advanced)… to paste it to all graphs.
You can either choose axis line and choose Copy Format: All to copy all axis format first and later when pasting format, choose to paste tick label formats, or choose tick labels to copy format so only tick label formats are copied and later choose what detailed tick label format to paste.
- Method 1: Right click on Y axis line in Graph1 and choose Copy Format: All to which copies all axis formats.
- Then right click X axis line or tick label text and choose Paste Format: Tick Labels to paste tick label properties.
- Right click in white area within Graph2 so no axis is selected, choose Paste Format To: All Axes: Tick Labels to apply tick label format too both X and Y axis.
- Method 2: Right click on the blue tick label text in Graph1 and choose Copy Format to copy tick label format only.
- Then right click tick label in Graph3 and choose Paste Format To, it will list only tick label formats to paste. E.g. choose Color. It will only paste color. Then choose Font to paste font size.
Customize more in Paste Format (Advanced) dialog:
- Select blue tick label text in Graph1 and choose Copy Format. Then with nothing selected in graph, choose Edit: Paste Format (Advanced)…
- Click the Pencil button. It lists all formats that are copied.
- Scroll to the bottom of the table and click Color: Blue. Modify the color e.g. choose Olive.
- Click the Face: Default Arial dropdown list, u can change the font e.g. Times New Roman.
- Click Size 20 to change it to 22.
- Click Apply Scope to All Graphs in this Folder. Apply to All Axis Tick Labels. It will apply the font and color to tick labels of all graphs in this folder.
- Same applies to axis title, etc. One method is to right click axis line to Copy format: All. Then later choose an axis line or a graph and choose Paste Format to: Title Style to paste the title style. User can even choose Title Text to paste the contents. Or right click the axis title to copy only title related format. Then later paste to other axis.
- You can always open Edit: Paste Format (Advanced) to check what’s being copied.
User may have different graphs and don’t want to change plot format. Only want to turn on axis frames in all graphs. It’s a layer level format but when copying layer level format, it also copies the plot format in the layer. This example will show how to use Paste Format (Advanced) dialog to clean up the formats before pasting.
- Single click in white area of Graph1 to select the layer. Right click and choose Copy Forma: All Style Formats.
- In Graph 7, right click and choose Paste Format (Advanced)…
- Navigate to Root -> Page -> All Layers -> Display. Click on Show Frame row to select it.
- Check Apply Selected Properties Only checkbox at the bottom of the table.
- Select Apply Scope to All Graphs in this Folder and apply. To turn on the axis frame to all graphs without modifying the plot styles in each graph.
- Click Save As… button and choose Show_Frame_Only to save it as a theme file.
- Later with any graph window active, you can choose Preferences: Theme Organizer. On Graph tab. Find this Show_Frame_Only theme and click Apply to turn on frame for other graph(s).
- In Apply Formats dialog, you can select multiple properties to apply together.
- You can delete unnecessary properties/nodes to make it easier for you to edit and save it as a Theme file for future use.
- If the formats are saved as a theme file, later you can choose Preferences: Theme Organizer. Go to Graph tab to find it and apply it to graphs.
Copy Objects Formats
Legend, text labels, images, arrows, rectangle, oval, etc. are all object in graph. You can also use copy and paste format to customize them.
- Legend in Graph1 is customized to show no box and align with axis frame.
- Right click the text part e.g. Decay 1 in Graph1 and choose Copy Format: All, it will copy both style and dimension.
- Right click the legend in Graph 6 and choose Paste Format To: Background to turn off box in the legend.
- Right click the legend again and choose Paste Format To: Dimensions to make it align with the axis frame.
- If you choose Paste Format To: All, even legend text is changed. This is because Text is also part of format.
- Choose Edit: Paste Format (Advanced)… Based on the checkboxes under Formats to Apply, you can tell even Text in legend is copied when copy format all.
- Uncheck All and only check Text. Click Pencil button to see the text contents.
- So to paste only legend background and dimension, choose Edit: Paste Format (Advanced)… Uncheck All and check only Background 、 Dimensions instead.
Copy and paste format is also supported on object in Layout window in Origin.
- Go to 3. Image Object folder in project.
- The left layout window is customized. Right click the image on it and choose Copy Format: Dimensions. It copies both image upper-left corner position and width and height.
- Right click the image on the right layout window and choose Paste Format.
- The image is resized and put to same location as left layout, which isn’t what we want. Press Ctrl+Z to undo.
- Right click the image and choose Paste Format: Advanced…
- Select Top, Left and Height rows. Then click Apply button to paste the width. Since Keep aspect ratio is checked by default for image, it height will auto adjust accordingly.
- Note: If u want to paste both size and position, after copying dimensions, directly right click the target image and choose Paste Format.
Note: For image with different aspect ratio, width will be kept while height will be changed.
There is also Save Format as Theme… context menu right below Copy and Paste Format context menus to directly save format as theme for future use.