Yes, the picture is somewhat misleading.
The doping is applied to the left and right electrode respectively as written in the tutorial text.
Please also refer to the script silicon_pn_junction.py attached on the tutorial.
There doping is clearly applied to the left and right electrode regions.