Eddie,
Thanks for your prompt reply – which confirms what I through to be the case i.e. you cannot select these multiple regions. I do have a Plan B which is broadly along the lines of your third suggestion.
The new “anti-aliasing” and set opacity features makes these graphics look so much better, I was never happy with my previous attempts to draw these vector/phasor diagrams.
I’m not sure I’ve mastered the graphics, yet! The routine below stopped me pulling my hair out with the coordinate system, and thereafter it all becomes a lot easier (posting it here just in case anybody else is struggling with this).
!--------------------------------------------------------------------------------------------------
! #079 function map_range_dp (a1, a2, b1, b2, s)
! Given two ranges [a1,a2] and [b1,b2]; then a value s in range [a1,a2] is linearly mapped to
! a value in the range [b1,b2]
!--------------------------------------------------------------------------------------------------
function map_range_dp(a1, a2, b1, b2, s)
real(kind = dp) map_range_dp
real(kind = dp), intent(in) :: a1, a2, b1, b2, s
if ( abs(a1 - a2) .gt. zero_sp .eqv. .false. ) then
call abort_run ('ERROR in MAP_RANGE_DP, range [a1,a2] is zero')
end if
map_range_dp = (s - a1) * (b2 - b1) / (a2 - a1) + b1
end function map_range_dp
Cheers
Ken