SPSS Tutorials

BASICS REGRESSION T-TEST CHI-SQUARE TEST ANOVA

SPSS – Set Chart Sizes Tool

Summary

This handy tool will set the exact sizes for one or many charts in the active output window.

SPSS Set Chart Sizes Tool - How to Use it

SPSS Set Chart Sizes Tool - Example 1

Right, let's download and open employees.sav. We'll do so and generate two basic charts by running the syntax below.

get file 'd:/data/employees.sav'.

frequencies gender/barchart.

GRAPH /HISTOGRAM=date_of_birth /PANEL COLVAR=gender COLOP=CROSS.

Now let's say we want the last chart to be 800 by 400 points. We'll open the Set Chart Sizes dialog under Utilities and fill it out as shown below.

Clicking Paste now results in SPSSTUTORIALS SETCHARTSIZES WIDTH='800' HEIGHT='400' CHARTS='Last' FILTER=''. Running this line of syntax will set the size of the last chart in the active output window to 800 by 400 points.

SPSS Set Chart Sizes Tool - Example 2

Now let's say we want all charts generated by FREQUENCIES to have a height of 300 points. We want to leave the width unaltered. For doing so, we'll fill out the Set Chart Sizes dialog as shown below. Note that the command name is case insensitive: “frequencies”, “FREQUENCIES” or even “fReQuEnCiEs” are all equivalent.

After clicking Paste we now get SPSSTUTORIALS SETCHARTSIZES WIDTH='' HEIGHT='300' CHARTS='All' FILTER='frequencies'. Running this sets the height of all charts in the active output window generated by a FREQUENCIES command to 300 points.

Final Notes

Setting exact chart sizes manually is cumbersome; while changing a chart's width or height, you don't see these values change until you're done (and discover the values are not as desired).
Perhaps more importantly, keep in mind that such manual modifications are not replicable; if you need to rerun (some of) your charts, you'll have to do everything all over again.
A sound way for setting chart sizes is by means of SPSS chart templates. However, we feel that using the tool presented in this tutorial is a much easier and faster alternative.

Hope you like it!

Previous tutorial: Read and Merge Multiple Sheet Excel Workbooks

Next tutorial: SPSS Set Decimals Output Tables

Let me know what you think!

*Required field. Your comment will show up after approval from a moderator.