There are different variants of the Planck's distribution function:
- spectral density of radiance of blackbody over frequencies:
$$B_\nu(\nu,T)=\frac{2h\nu^3}{c^2}\frac1{e^{\frac{h\nu}{kT}}-1},\tag1$$
- the same density, but over wavelengths:
$$B_\lambda(\lambda,T)=\frac{2hc^2}{\lambda^5}\frac1{e^{\frac{hc}{\lambda kT}}-1}.\tag2$$
These are different densities that are supposed to be integrated over different quantities to get total radiance in a given spectral range: $B_\lambda$ is to be integrated over a range of wavelengths, while $B_\nu$ over a range of frequencies. This is also reflected in the dimensions of these densities.
If you have e.g. $B_\nu$ but need to integrate over wavelengths, you'll have to use an appropriate change of variables of integration. E.g. to get a total radiance in the range between 400 nm and 500 nm, you can integrate as
$$
R=\int\limits_{400\,\mathrm{nm}}^{500\,\mathrm{nm}} B_\nu(\nu,T)\,d\nu
=\int\limits_{600\,\mathrm{THz}}^{749\,\mathrm{THz}} -\frac{d\nu}{d\lambda}\;B_\nu\left(\frac c\lambda,T\right)\,d\lambda
\equiv\int\limits_{600\,\mathrm{THz}}^{749\,\mathrm{THz}} B_\lambda(\lambda,T)\,d\lambda.
\tag3
$$
In the middle expression above the minus sign is just for convenience, so that the integration goes from smaller frequency to larger (and this minus also gets into $B_\lambda$ on the RHS and into $(2)$).
Why do we need different functions for different scales? It's because at different points in wavelength a unit interval of wavelengths will have different interval in frequencies. E.g. consider the range 400 nm to 401 nm, its width being 1 nm. After you find corresponding frequencies, you'll get respectively 749.5 THz and 747.6 THz, with a difference being about 1.9 THz. Now consider the range of 700 nm to 701 nm, also of width 1 nm. Corresponding frequencies are 428.3 THz and 427.7 THz, with a difference of about 0.6 THz.
Now, you can indeed plot e.g. $B_\nu$ on a wavelength plot as $B_\nu(c/\lambda,T)$. This wouldn't be wrong, but it would be misleading. The readers would expect to see the density plotted correspond to the scale on the axes, while in fact it doesn't.