Add rotation check.
"plt.show()"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Investigate rotation in `create_rectangular_field_function()`"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "ROTATION = 30\n",
+ "f = profiles.create_rectangular_field_function(centre=(X_CENTRE, Y_CENTRE), side_lengths=(X_WIDTH, Y_WIDTH),\n",
+ " penumbra_width=PENUMBRA_WIDTH, rotation=ROTATION)\n",
+ "\n",
+ "D = f(X, Y)\n",
+ "\n",
+ "print(f(x50_1, CENTRE))\n",
+ "print(f(x50_2, CENTRE))\n",
+ "print(f(CENTRE, y50_1))\n",
+ "print(f(CENTRE, y50_2))\n",
+ "\n",
+ "plt.imshow(D, extent=(x_i, x_f, y_i, y_f), cmap='jet')\n",
+ "plt.axvline(x50_1, color='silver', linestyle='--')\n",
+ "plt.axvline(x50_2, color='silver', linestyle='--')\n",
+ "plt.axhline(y50_1, color='silver', linestyle='--')\n",
+ "plt.axhline(y50_2, color='silver', linestyle='--')\n",
+ "plt.show()\n"
+ ]
+ },
{
"cell_type": "code",
"execution_count": null,
