Contour and Surface Charts in Excel 2007

しばらく前に、Dian Chapman の今は亡き TechTrax Ezine で Microsoft Excel の表面グラフと等高線グラフについて書いたことがあります。 その記事では、表面図と等高線図のデータ要件を概説し、これらのグラフの書式の特異性について説明しました。 その記事は Excel 97 から 2003 のバージョンに対して有効でしたが、チャート作成の他の多くの側面と同様に、Excel 2007 がすべてを変えました。

これらの例では、この単純なデータセットを使用しましょう。 グリッド内の各値は、対応する行と列のヘッダーの積です。

Data for Contour and Surface Chart Examples

Data for Contour and Surface Chart Examples

Excel 2003 Contour and Surface Charts

データを選択し輪郭チャートを挿入すると、このようなものが得られます。 水平軸と垂直軸の機能 (実際には「カテゴリ」軸と「シリーズ」軸) を削除し、データ バンドにシンプルな配色を選択しました。 バンドをフォーマットするには、そのバンドの凡例キー、つまりラベルの前にある小さな四角をフォーマットするのです。

Excel 2003

Excel 2003

目盛り

このスケールは少し粗く、鞍点や角にある色の付いたバンドの形などの対称の特徴は対称に描画されません。 この非対称性はあまりどうしようもなく、私は以前、ソース データに行と列を挿入し、値を補間して、解像度を倍増させました。 これは、奇妙なレンダリングを治すことはできませんでしたが、少なくとも少しは改善されました。

帯のスケールを変更するには、凡例をフォーマットします。 凡例の書式設定] ダイアログには、通常の [軸の書式設定] ダイアログと同じように、[スケール] タブがあります。 値」軸は見えませんが、ツールバーの [グラフ要素] ドロップダウンで選択し、そのスケールを直接フォーマットできます。

Excel 2003 Chart Element Selection Dropdown

Excel 2003 Chart Element Selection Dropdown

The contour chart has a finar scale and more shades of blue and red.

Excel 2003

Excel 2003

以下は、それに対応するサーフェス チャートです。 値軸が明らかになり、表面の鞍のような形は、等高線プロットよりもイメージしやすいかもしれません。 欠点は、表面の一部 (遠くの濃い青のコーナー) が、グラフの中央の鞍点によって見えなくなるくらいに低下していることです。

Excel 2003 Surface Chart with Fixed Scale

Excel 2003 Surface Chart with Fixed Scale

Orientation

You can adjust the orientation of the surface chart using the 3-D View dialog, available by right-clicking on the chart.

Excel 2003 3D View Dialog

Excel 2003 3D View Dialog

In Excel 2003, you can also click on a corner of the box enclosing the chart…

Excel 2003 Surface Chart with Corners Selected

Excel 2003 Surface Chart with Corners Selected

… and drag the corner to reorient the chart. While dragging, just the outline of the box is visible, showing how the orientation is changing.

Changing Excel 2003 Surface Chart Orientation with the Mouse

Changing Excel 2003 Surface Chart Orientation with the Mouse

Excel 2007 Contour and Surface Charts

To make a contour chart in Excel 2007, like 2003, you select the data, and insert the chart.

Scale

You can’t format the legend to adjust the scale of the colored bands, but you can select the value axis using the dropdown on the Chart Tools > Layout or Format tab.

Excel 2007 Chart Element Selection Dropdown

Excel 2007 Chart Element Selection Dropdown

To change the colors of each band, select the legend entry (the legend keys in 2007 cannot be selected) and open the formatting dialog. The tabs for fill and border color refer to the formats of the legend key and the corresponding band.

Here is the contour plot with the same scale as the 2003 example above.

Excel 2007 Contour Chart with Fixed Scale

Excel 2007 Contour Chart with Fixed Scale

And the corresponding surface chart. Asymmetric rendering of the saddle point and other features has not changed since Excel 2003.

Excel 2007 Surface Chart with Fixed Scale

Excel 2007 Surface Chart with Fixed Scale

Orientation

The Format Chart Area dialog in Excel 2007 includes a 3-D Rotation pane to allow adjustment of the surface chart’s orientation. 多くの 2007 年のダイアログと同様に、実際の機能に大きな違いはありませんが、対応する 2003 年のダイアログよりはるかに大きくなっています。

Excel 2007 の表面図でコーナーを選択することもできますが、グラフの向きを調整するためにコーナーをドラッグすることはできません。

Excel 2007 3D ビュー ダイアログ

Excel 2007 3D ビュー ダイアログ

書式

他の Excel 2007、特に Excel 2007 チャートの多くの書式のように、等高線グラフと表面図の影はかなり大げさに表示されます。

このグラデーションは、面グラフではそれほど深刻ではありませんが、等高線グラフでは、帯の値の解釈を妨げています。 等高線グラフは「平坦」なので、オフセットされた光源の影響を受けないと思うかもしれません。

色の違いは、トーンダウンする方法があれば、半端なものではありません。 しかし、しばらく探しましたが、色の帯の中の変化を減らす方法は見つかりませんでした。

2007 年のチャートでは、明暗の領域を削除して、2003 年のチャートと同様に平坦な色にすることは可能です。

色の帯をフォーマットする必要があります。 これを行うには、凡例を一度クリックし、次に、フォーマットしたい帯のラベルを一度クリックします。

[帯の書式設定] ダイアログで、[3D 書式] をクリックし、[材質] をクリックして、[特殊効果] で [フラット] オプションを選択します。

Format Band - 3D Format - Material Dialog

Format Band - 3D Format - Material Dialog

This removes all of the textures within the band. Repeat for every band in the contour plot…

Excel 2007 Contour Chart with Fixed Shading

Excel 2007 Contour Chart with Fixed Shading

… or surface chart.

Excel 2007 Surface Chart with Fixed Shading

Excel 2007 Surface Chart with Fixed Shading

While the default texture with all of the shading and gradients was excessive, it provided a bit of detail missing in the flat-colored charts. In 2003, this detail was provided by borders on the bands. Add a border using the Format Bands dialog.

Excel 2007 Contour Chart with Borders

Excel 2007 Contour Chart with Borders

The border seems to help the surface chart more than the contour plot.

Excel 2007 Surface Chart with Borders

Excel 2007 Surface Chart with Borders

コメントを残す

メールアドレスが公開されることはありません。