Skip to content

Commit

Permalink
problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lingruiluo committed Jul 10, 2020
1 parent 624a781 commit f540615
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions notebooks/misc/svg_tests/text test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "57a68f4f29ae41d89206c78291eb7e10",
"model_id": "4f6c36263f7a46a7b0d4a6be63ca1054",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -172,7 +172,7 @@
" 'sample_pixel': {'x': 209, 'y': 92}}]"
]
},
"execution_count": 4,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -183,7 +183,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -192,10 +192,10 @@
"\n",
"<svg viewBox=\"0 0 320 220\" xmlns=\"http://www.w3.org/2000/svg\">\n",
" <g transform=\"scale(1.030464735886522 1.030464735886522) translate(138.00743880125165 104.52715792401892)\">\n",
"\t<text fill=\"#ee3\" text-anchor=\"end\" font-size=\"40\" font-family=\"Arial\" >Cookie</text>\n",
"\t<text fill=\"#7DD\" transform=\"rotate(-92, -30, 44.44158783345125)\" text-anchor=\"end\" font-size=\"40\" font-family=\"Times\" >UP→</text>\n",
"\t<text fill=\"#ee3\" font-size=\"40\" font-family=\"Arial\" >Cookie</text>\n",
"\t<text fill=\"#7DD\" transform=\"rotate(-92, -30, 44.44158783345125)\" font-size=\"40\" font-family=\"Times\" >UP→</text>\n",
"\t<text fill=\"rgba(222,111,111,0.3)\" transform=\"rotate(-45, 20, 14.441587833451251)\" text-anchor=\"middle\" font-size=\"30\" font-family=\"Courier\" >EYES ONLY</text>\n",
"\t<text fill=\"rgba(200,150,50,0.8)\" transform=\"rotate(10, 20, 24.44158783345125)\" text-anchor=\"end\" font-size=\"20\" font-family=\"Arial\" >←EXIT</text>\n",
"\t<text fill=\"rgba(200,150,50,0.8)\" transform=\"rotate(10, 20, 24.44158783345125)\" font-size=\"20\" font-family=\"Arial\" >←EXIT</text>\n",
"\t</g>\n",
"</svg>\n"
],
Expand All @@ -212,6 +212,13 @@
"\n",
"svg_translation.display_as_svg(demo)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit f540615

Please sign in to comment.