Skip to content

Commit

Permalink
fix image spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc2 committed Dec 10, 2023
1 parent 311242f commit e7423dc
Showing 1 changed file with 17 additions and 59 deletions.
76 changes: 17 additions & 59 deletions notebooks/02-methods/02-rendering-techniques.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"\n",
" \n",
"\n",
"<img src=\"../images/rendering/polygons.png\" alt=\"Continents\" width=\"400\"/>"
"<img src=\"../images/rendering/polygons.png\" alt=\"Continents\" width=\"400\"/>\n",
"\n",
"&nbsp;"
]
},
{
Expand All @@ -44,7 +46,9 @@
"\n",
"&nbsp;\n",
"\n",
"<img src=\"../images/rendering/contients.jpg\" alt=\"Continents\" width=\"600\"/>"
"<img src=\"../images/rendering/contients.jpg\" alt=\"Continents\" width=\"600\"/>\n",
"\n",
"&nbsp;"
]
},
{
Expand All @@ -71,13 +75,9 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-10T20:33:19.976436Z",
"start_time": "2023-12-10T20:33:19.933207Z"
}
"collapsed": false
},
"outputs": [],
"source": [
Expand All @@ -95,27 +95,13 @@
},
{
"cell_type": "code",
"execution_count": 2,
"outputs": [
{
"data": {
"text/plain": "<POINT (0 0)>",
"image/svg+xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"100.0\" height=\"100.0\" viewBox=\"-1.0 -1.0 2.0 2.0\" preserveAspectRatio=\"xMinYMin meet\"><g transform=\"matrix(1,0,0,-1,0,0.0)\"><circle cx=\"0.0\" cy=\"0.0\" r=\"0.06\" stroke=\"#555555\" stroke-width=\"0.02\" fill=\"#66cc99\" opacity=\"0.6\" /></g></svg>"
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": null,
"outputs": [],
"source": [
"sp.Point([0.0, 0.0])"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-10T20:33:19.981162Z",
"start_time": "2023-12-10T20:33:19.979194Z"
}
"collapsed": false
}
},
{
Expand All @@ -129,27 +115,13 @@
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [
{
"data": {
"text/plain": "<LINESTRING (0 0, 180 -90)>",
"image/svg+xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"194.39999999999998\" height=\"104.4\" viewBox=\"-7.2 -97.2 194.39999999999998 104.4\" preserveAspectRatio=\"xMinYMin meet\"><g transform=\"matrix(1,0,0,-1,0,-90.0)\"><polyline fill=\"none\" stroke=\"#66cc99\" stroke-width=\"2.0\" points=\"0.0,0.0 180.0,-90.0\" opacity=\"0.8\" /></g></svg>"
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"execution_count": null,
"outputs": [],
"source": [
"sp.LineString([[0.0, 0.0], [180, -90]])"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-10T20:33:19.984593Z",
"start_time": "2023-12-10T20:33:19.982032Z"
}
"collapsed": false
}
},
{
Expand All @@ -163,25 +135,11 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-12-10T20:33:19.988538Z",
"start_time": "2023-12-10T20:33:19.986134Z"
}
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": "<POLYGON ((100 40, 100 50, 90 50, 90 40, 100 40))>",
"image/svg+xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"100.0\" height=\"100.0\" viewBox=\"89.6 39.6 10.800000000000011 10.799999999999997\" preserveAspectRatio=\"xMinYMin meet\"><g transform=\"matrix(1,0,0,-1,0,90.0)\"><path fill-rule=\"evenodd\" fill=\"#66cc99\" stroke=\"#555555\" stroke-width=\"0.21600000000000022\" opacity=\"0.6\" d=\"M 100.0,40.0 L 100.0,50.0 L 90.0,50.0 L 90.0,40.0 L 100.0,40.0 z\" /></g></svg>"
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"sp.Polygon([[100, 40], [100, 50], [90, 50], [90, 40], [100, 40]])"
]
Expand Down

0 comments on commit e7423dc

Please sign in to comment.