If you copy paste a diagram from a paper/book onto your own work, without permission or attribution, that's plagiarism.
What happens if you see a beautiful diagram about what you want to explain and you replicate it identically without copy pasting?
What if you don't copy it identically but it's still similar (say the colors are different, and the vertices/edges/boxes) have slightly different shapes? For example the original used a 3D blob to explain what a local chart is, and your diagram uses an ellipsoid.
What if you transfer mediums? For example a chalkboard diagram turned into a metafont diagram?
Since there are only so many ways to convey certain mathematical ideas, such as what a bivector is, or how to compute a spline. When do you know where your source of inspiration is too close to your own work that you walked over into plagiarism?