Download paper/Ball.sty from Nabidnur/PISCES: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/Nabidnur/PISCES/resolve/main/paper/Ball.sty
- Command line
-
hf download hf://Nabidnur/PISCES/paper/Ball.sty
-
curl -L -o Ball.sty https://huggingface.co/Nabidnur/PISCES/resolve/main/paper/Ball.sty
1.38 kB
| % Modified from PlotNeuralNet (MIT, H. Iqbal): internal macros renamed (\caption -> \pnncaption, \fill -> \pnnfill) so the styles do not clash with LaTeX figure captions. | |
| \ProvidesPackage{Ball} | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| %This Block can draw small Ball | |
| %Elementwise or reduction operations can be drawn with this | |
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
| \tikzset{Ball/.pic={\tikzset{/sphere/.cd,#1} | |
| \pgfmathsetmacro{\r}{\radius*\scale} | |
| \shade[ball color=\pnnfill,opacity=\opacity] (0,0,0) circle (\r); | |
| \draw (0,0,0) circle [radius=\r] node[scale=4*\r] {\logo}; | |
| \coordinate (\name-anchor) at ( 0 , 0 , 0) ; | |
| \coordinate (\name-east) at ( \r, 0 , 0) ; | |
| \coordinate (\name-west) at (-\r, 0 , 0) ; | |
| \coordinate (\name-north) at ( 0 , \r , 0) ; | |
| \coordinate (\name-south) at ( 0 , -\r, 0) ; | |
| \path (\name-south) + (0,-20pt) coordinate (caption-node) | |
| edge ["\textcolor{black}{\bf \pnncaption}"'] (caption-node); %Ball caption | |
| }, | |
| /sphere/.search also={/tikz}, | |
| /sphere/.cd, | |
| radius/.store in=\radius, | |
| scale/.store in=\scale, | |
| caption/.store in=\pnncaption, | |
| name/.store in=\name, | |
| fill/.store in=\pnnfill, | |
| logo/.store in=\logo, | |
| opacity/.store in=\opacity, | |
| logo=$\Sigma$, | |
| fill=green, | |
| opacity=0.10, | |
| scale=0.2, | |
| radius=0.5, | |
| caption=, | |
| name=, | |
| } | |