@@ -165,8 +165,9 @@ The following code draws a boundary for the simplex and gridlines.
165165
166166 ternary.plt.show()
167167```
168-
169- ![ Ternary Plot -- Boundary and Gridlines] ( /readme_images/boundary_and_gridlines.png )
168+ <p align =" center " >
169+ <img src =" /readme_images/boundary_and_gridlines.png " width =" 500 " height =" 375 " />
170+ </p >
170171
171172## Drawing lines
172173
@@ -205,7 +206,9 @@ You can draw individual lines between any two points with `line` and lines paral
205206
206207The line drawing functions accept the matplotlib keyword arguments of [ Line2D] ( http://matplotlib.org/api/lines_api.html ) .
207208
208- ![ Ternary Plot -- Various Lines] ( /readme_images/various_lines.png )
209+ <p align =" center " >
210+ <img src =" /readme_images/various_lines.png " width =" 500 " height =" 375 " />
211+ </p >
209212
210213## Curves
211214
@@ -236,7 +239,9 @@ Points is a list of tuples or numpy arrays, such as [(0.5, 0.25, 0.25), (1./3, 1
236239 tax.show()
237240```
238241
239- ![ Ternary Curve Plot] ( /readme_images/trajectory.png )
242+ <p align =" center " >
243+ <img src =" /readme_images/trajectory.png " width =" 500 " height =" 375 " />
244+ </p >
240245
241246There are many more examples in [ this paper] ( http://arxiv.org/abs/1210.5539 ) .
242247
@@ -245,7 +250,9 @@ You can also color the curves with a Matplotlib heatmap using:
245250 plot_colored_trajectory(points, cmap="hsv", linewidth=2.0)
246251```
247252
248- ![ Ternary Curve Plot] ( /readme_images/colored_trajectory.png )
253+ <p align =" center " >
254+ <img src =" /readme_images/colored_trajectory.png " width =" 500 " height =" 375 " />
255+ </p >
249256
250257## Scatter Plots
251258
@@ -271,7 +278,9 @@ Similarly, ternary can make scatter plots:
271278 tax.show()
272279```
273280
274- ![ Ternary Scatter Plot Example] ( /readme_images/scatter.png )
281+ <p align =" center " >
282+ <img src =" /readme_images/scatter.png " width =" 500 " height =" 375 " />
283+ </p >
275284
276285## Heatmaps
277286
@@ -294,9 +303,11 @@ mapping ternary coordinates to upright triangles otherwise. The `triangular` sty
294303maps ternary coordinates to vertices and computes the triangle color based on the
295304values at the vertices.
296305
297- <img src =" /readme_images/heatmap-grids.png " width =" 500 " height =" 250 " />
306+ <p align =" center " >
307+ <img src =" /readme_images/heatmap-grids.png " width =" 500 " height =" 250 " /><br />
308+ <img src =" /readme_images/heatmap_styles_cubehelix.png " /><br />
309+ </p >
298310
299- ![ ] ( /readme_images/heatmap_styles_cubehelix.png )
300311
301312Thanks to [ chebee7i] ( https://github.com/chebee7i ) for the above images.
302313
@@ -332,7 +343,9 @@ In this case the keyword argument *boundary* indicates whether you wish to evalu
332343
333344You may specify a [ matplotlib colormap] ( http://matplotlib.org/examples/color/colormaps_reference.html ) (an instance or the colormap name) in the cmap argument.
334345
346+ <p style =" text-align :center " >
335347![ Ternary Heatmap Examples] ( /readme_images/heatmap_shannon.png )
348+ </p >
336349
337350Ternary can also make heatmaps from data. In this case you need to supply a dictionary
338351mapping ` (i, j) ` or ` (i, j, k) ` for ` i + j + k = scale ` to a float as input for a heatmap. It is not necessary to include ` k ` in the dictionary keys since it can be determined from ` scale ` , ` i ` , and ` j ` . This reduces the memory requirements when the partition is very fine (significant when ` scale ` is in the hundreds).
@@ -351,9 +364,10 @@ or on a `TernaryAxesSubplot` object:
351364
352365This can produces images such as:
353366
354- ![ Ternary Heatmap Examples] ( /readme_images/heatmap-dual_vs_triangular.png )
355-
356- ![ Ternary Heatmap Examples] ( /readme_images/heatmap_rsp.png )
367+ <p align =" center " >
368+ <img src =" /readme_images/heatmap-dual_vs_triangular.png " width =" 1200 " height =" 300 " /> <br />
369+ <img src =" /readme_images/heatmap_rsp.png " width =" 500 " height =" 375 " />
370+ </p >
357371
358372There is a large set of heatmap examples [ here] ( http://www.marcharper.net/stationary_examples/index.html ) .
359373
@@ -364,7 +378,9 @@ corresponding to the clockwise and counterclockwise orientations. However note
364378that the axes labels need to be adjusted accordingly, and ` ternary ` does not
365379do so automatically when you pass ` clockwise=True ` to ` tax.ticks() ` .
366380
367- ![ ] ( /readme_images/orientations.png )
381+ <p align =" center " >
382+ <img src =" /readme_images/orientations.png " />
383+ </p >
368384
369385There is a [ more detailed discussion] ( https://github.com/marcharper/python-ternary/issues/18 ) on issue #18 (closed).
370386
@@ -409,8 +425,9 @@ inclusion of a colorbar. Here is an example:
409425
410426This produces the following image:
411427
412- ![ Ternary Heatmap Examples] ( /readme_images/rgba_example.png )
413-
428+ <p align =" center " >
429+ <img src =" /readme_images/rgba_example.png " width =" 450 " height =" 450 " />
430+ </p >
414431
415432# Unittests
416433
0 commit comments