# [✓] Use the Filling Option to fill horizontally data values?

Posted 1 year ago
1731 Views
|
3 Replies
|
1 Total Likes
|
 As a Geotechnical Engineer, I frequently need to produce graphs showing all kinds of data plotted against depth (i.e. the data values are plotted along the horizontal x-axis and the corresponding depth values are plotted down the vertical y-axis). The Filling option is often useful in helping to visualise the data. However, as far as I can make out, the Filling option is only available for filling above, below or vertically between data values. I'd like to be able to also fill horizontally, either to the left, to the right or horizontally between data values. Thus far, the only way I've managed to achieve this is to use a fudge whereby I :(1) plot the data values along the vertical y-axis and the corresponding depth values along the horizontal x-axis; then(2) rotate the whole plot through 90 degrees.Whilst this works, it's a bit of a nuisance. I'd be grateful to hear whether anyone out there is aware of a better way? And if not, I'd like to suggest to Wolfram that the Filling option be extended to include this functionality. I'm sure there must be many other applications where this would be useful.All the best,Ian
3 Replies
Sort By:
Posted 1 year ago
 One way is to use graphic primitives: Graphics[Polygon[ Join[{{0, 0}}, Table[{Cos[t], t}, {t, 0, 2 Pi, Pi/10}], {{0, 2 Pi}}]], Axes -> True]