How to draw a much more dense grid or lattice?











up vote
3
down vote

favorite
1












My inquiries:




1) How to draw a much more dense grid in 2-dim?



2) How to draw a much more dense grid in 3-dim?




Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have each side has 16 or 17 lattice point on unit 4 on the grid? (so 16 x 16 in 2D or 16 x 16 x 16 in 3D.)



Here is what I have:



begin{figure}[h!]
centering
begin{tikzpicture}
draw [very thin, lightgray] (0,0) grid (4,4);
end{tikzpicture}
label{fig:lattice}
caption{}
end{figure}


enter image description here










share|improve this question






















  • for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
    – flav
    Dec 11 at 5:23















up vote
3
down vote

favorite
1












My inquiries:




1) How to draw a much more dense grid in 2-dim?



2) How to draw a much more dense grid in 3-dim?




Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have each side has 16 or 17 lattice point on unit 4 on the grid? (so 16 x 16 in 2D or 16 x 16 x 16 in 3D.)



Here is what I have:



begin{figure}[h!]
centering
begin{tikzpicture}
draw [very thin, lightgray] (0,0) grid (4,4);
end{tikzpicture}
label{fig:lattice}
caption{}
end{figure}


enter image description here










share|improve this question






















  • for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
    – flav
    Dec 11 at 5:23













up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





My inquiries:




1) How to draw a much more dense grid in 2-dim?



2) How to draw a much more dense grid in 3-dim?




Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have each side has 16 or 17 lattice point on unit 4 on the grid? (so 16 x 16 in 2D or 16 x 16 x 16 in 3D.)



Here is what I have:



begin{figure}[h!]
centering
begin{tikzpicture}
draw [very thin, lightgray] (0,0) grid (4,4);
end{tikzpicture}
label{fig:lattice}
caption{}
end{figure}


enter image description here










share|improve this question













My inquiries:




1) How to draw a much more dense grid in 2-dim?



2) How to draw a much more dense grid in 3-dim?




Let us say it is still 4 x 4 in 2d or 4 x 4 x 4 in 3D in size, but I want to have each side has 16 or 17 lattice point on unit 4 on the grid? (so 16 x 16 in 2D or 16 x 16 x 16 in 3D.)



Here is what I have:



begin{figure}[h!]
centering
begin{tikzpicture}
draw [very thin, lightgray] (0,0) grid (4,4);
end{tikzpicture}
label{fig:lattice}
caption{}
end{figure}


enter image description here







tikz-pgf tikz-styles technical-drawing draw grids






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 11 at 4:54









wonderich

607618




607618












  • for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
    – flav
    Dec 11 at 5:23


















  • for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
    – flav
    Dec 11 at 5:23
















for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
– flav
Dec 11 at 5:23




for 3d, take a look on : tex.stackexchange.com/questions/435503/drawing-3d-grids-cubes
– flav
Dec 11 at 5:23










3 Answers
3






active

oldest

votes

















up vote
5
down vote



accepted










Here is a 3D grid.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
tdplotsetmaincoords{70}{110}
begin{document}
begin{tikzpicture}[tdplot_main_coords]
foreach X in {0,1,...,16}
{foreach Y in {0,1,...,16}
{draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
end{tikzpicture}
end{document}


enter image description here



And here is an illustration that shows what the view does.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
begin{document}
foreach Rot in {0,10,...,360}
{tdplotsetmaincoords{70+15*sin(Rot)}{Rot}
begin{tikzpicture}[tdplot_main_coords]
path[use as bounding box,tdplot_screen_coords] (-6,-2) rectangle (6,7);
foreach X in {0,1,...,16}
{foreach Y in {0,1,...,16}
{draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
end{tikzpicture} }
end{document}


enter image description here



You can, of course, use very thin gray lines. And yes, you can scale the grid by saying scale=<factor>.



documentclass[tikz,border=3.14mm]{standalone}
usepackage{tikz-3dplot}
tdplotsetmaincoords{70}{110}
begin{document}
begin{tikzpicture}[tdplot_main_coords]
begin{scope}[ultra thin,lightgray]
foreach X in {0,1,...,16}
{foreach Y in {0,1,...,16}
{draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
end{scope}

begin{scope}[line width=0.01pt,lightgray,xshift=5cm,scale=0.4]
foreach X in {0,1,...,16}
{foreach Y in {0,1,...,16}
{draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
end{scope}

end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • Thanks, this is useful +1, but can I make the lines more transparent?
    – wonderich
    Dec 11 at 16:25










  • @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
    – marmot
    Dec 11 at 16:27












  • I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
    – wonderich
    Dec 11 at 16:30










  • I also how can I make the whole figure size tunable? [scale=...]?
    – wonderich
    Dec 11 at 16:31










  • Or [size=4cm] something like this?
    – wonderich
    Dec 11 at 16:32




















up vote
3
down vote













The step key is used to indicate this.



steps



documentclass{article}
usepackage{tikz}
begin{document}

begin{tikzpicture}
draw [very thin, lightgray] (0,0) grid (4,4);

begin{scope}[xshift=5cm]
draw [very thin, lightgray,step=.1] (0,0) grid (4,4);
end{scope}
end{tikzpicture}
end{document}





share|improve this answer





















  • Thanks +1, very useful!
    – wonderich
    Dec 11 at 16:21


















up vote
2
down vote













A PSTricks solution only for comparison purposes.



documentclass[pstricks,border=12pt,12pt]{standalone}
newpsstyle{gridstyle}
{
gridlabels=8pt,
gridfont=Arial,
%
gridcolor=red,
subgridcolor=gray,
%
subgriddiv=5,
%
gridwidth=.8pt,
subgridwidth=.4pt,
%
griddots=10,
subgriddots=5,
}
begin{document}
begin{pspicture}[showgrid](5,5)

end{pspicture}
end{document}


enter image description here






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464249%2fhow-to-draw-a-much-more-dense-grid-or-lattice%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote



    accepted










    Here is a 3D grid.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture}
    end{document}


    enter image description here



    And here is an illustration that shows what the view does.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    begin{document}
    foreach Rot in {0,10,...,360}
    {tdplotsetmaincoords{70+15*sin(Rot)}{Rot}
    begin{tikzpicture}[tdplot_main_coords]
    path[use as bounding box,tdplot_screen_coords] (-6,-2) rectangle (6,7);
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture} }
    end{document}


    enter image description here



    You can, of course, use very thin gray lines. And yes, you can scale the grid by saying scale=<factor>.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    begin{scope}[ultra thin,lightgray]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    begin{scope}[line width=0.01pt,lightgray,xshift=5cm,scale=0.4]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer























    • Thanks, this is useful +1, but can I make the lines more transparent?
      – wonderich
      Dec 11 at 16:25










    • @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
      – marmot
      Dec 11 at 16:27












    • I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
      – wonderich
      Dec 11 at 16:30










    • I also how can I make the whole figure size tunable? [scale=...]?
      – wonderich
      Dec 11 at 16:31










    • Or [size=4cm] something like this?
      – wonderich
      Dec 11 at 16:32

















    up vote
    5
    down vote



    accepted










    Here is a 3D grid.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture}
    end{document}


    enter image description here



    And here is an illustration that shows what the view does.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    begin{document}
    foreach Rot in {0,10,...,360}
    {tdplotsetmaincoords{70+15*sin(Rot)}{Rot}
    begin{tikzpicture}[tdplot_main_coords]
    path[use as bounding box,tdplot_screen_coords] (-6,-2) rectangle (6,7);
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture} }
    end{document}


    enter image description here



    You can, of course, use very thin gray lines. And yes, you can scale the grid by saying scale=<factor>.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    begin{scope}[ultra thin,lightgray]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    begin{scope}[line width=0.01pt,lightgray,xshift=5cm,scale=0.4]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer























    • Thanks, this is useful +1, but can I make the lines more transparent?
      – wonderich
      Dec 11 at 16:25










    • @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
      – marmot
      Dec 11 at 16:27












    • I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
      – wonderich
      Dec 11 at 16:30










    • I also how can I make the whole figure size tunable? [scale=...]?
      – wonderich
      Dec 11 at 16:31










    • Or [size=4cm] something like this?
      – wonderich
      Dec 11 at 16:32















    up vote
    5
    down vote



    accepted







    up vote
    5
    down vote



    accepted






    Here is a 3D grid.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture}
    end{document}


    enter image description here



    And here is an illustration that shows what the view does.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    begin{document}
    foreach Rot in {0,10,...,360}
    {tdplotsetmaincoords{70+15*sin(Rot)}{Rot}
    begin{tikzpicture}[tdplot_main_coords]
    path[use as bounding box,tdplot_screen_coords] (-6,-2) rectangle (6,7);
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture} }
    end{document}


    enter image description here



    You can, of course, use very thin gray lines. And yes, you can scale the grid by saying scale=<factor>.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    begin{scope}[ultra thin,lightgray]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    begin{scope}[line width=0.01pt,lightgray,xshift=5cm,scale=0.4]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer














    Here is a 3D grid.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture}
    end{document}


    enter image description here



    And here is an illustration that shows what the view does.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    begin{document}
    foreach Rot in {0,10,...,360}
    {tdplotsetmaincoords{70+15*sin(Rot)}{Rot}
    begin{tikzpicture}[tdplot_main_coords]
    path[use as bounding box,tdplot_screen_coords] (-6,-2) rectangle (6,7);
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{tikzpicture} }
    end{document}


    enter image description here



    You can, of course, use very thin gray lines. And yes, you can scale the grid by saying scale=<factor>.



    documentclass[tikz,border=3.14mm]{standalone}
    usepackage{tikz-3dplot}
    tdplotsetmaincoords{70}{110}
    begin{document}
    begin{tikzpicture}[tdplot_main_coords]
    begin{scope}[ultra thin,lightgray]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    begin{scope}[line width=0.01pt,lightgray,xshift=5cm,scale=0.4]
    foreach X in {0,1,...,16}
    {foreach Y in {0,1,...,16}
    {draw (X/4,Y/4,0) -- (X/4,Y/4,16/4);
    draw (X/4,0,Y/4) -- (X/4,16/4,Y/4);
    draw (0,X/4,Y/4) -- (16/4,X/4,Y/4);}}
    end{scope}

    end{tikzpicture}
    end{document}


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 11 at 16:36

























    answered Dec 11 at 9:08









    marmot

    83.1k493178




    83.1k493178












    • Thanks, this is useful +1, but can I make the lines more transparent?
      – wonderich
      Dec 11 at 16:25










    • @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
      – marmot
      Dec 11 at 16:27












    • I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
      – wonderich
      Dec 11 at 16:30










    • I also how can I make the whole figure size tunable? [scale=...]?
      – wonderich
      Dec 11 at 16:31










    • Or [size=4cm] something like this?
      – wonderich
      Dec 11 at 16:32




















    • Thanks, this is useful +1, but can I make the lines more transparent?
      – wonderich
      Dec 11 at 16:25










    • @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
      – marmot
      Dec 11 at 16:27












    • I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
      – wonderich
      Dec 11 at 16:30










    • I also how can I make the whole figure size tunable? [scale=...]?
      – wonderich
      Dec 11 at 16:31










    • Or [size=4cm] something like this?
      – wonderich
      Dec 11 at 16:32


















    Thanks, this is useful +1, but can I make the lines more transparent?
    – wonderich
    Dec 11 at 16:25




    Thanks, this is useful +1, but can I make the lines more transparent?
    – wonderich
    Dec 11 at 16:25












    @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
    – marmot
    Dec 11 at 16:27






    @wonderich I think so, yes. Do you want to fade the distance lines away? Or just make all lines transparent, regardless of the distance to the front? Here is a proposal for the first option.
    – marmot
    Dec 11 at 16:27














    I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
    – wonderich
    Dec 11 at 16:30




    I dont need faded away -- this is too advanced for me. Just as transparent, for example, as the original my post OP or other posts! (The lines can be tuned to that gray scale). Thank you!
    – wonderich
    Dec 11 at 16:30












    I also how can I make the whole figure size tunable? [scale=...]?
    – wonderich
    Dec 11 at 16:31




    I also how can I make the whole figure size tunable? [scale=...]?
    – wonderich
    Dec 11 at 16:31












    Or [size=4cm] something like this?
    – wonderich
    Dec 11 at 16:32






    Or [size=4cm] something like this?
    – wonderich
    Dec 11 at 16:32












    up vote
    3
    down vote













    The step key is used to indicate this.



    steps



    documentclass{article}
    usepackage{tikz}
    begin{document}

    begin{tikzpicture}
    draw [very thin, lightgray] (0,0) grid (4,4);

    begin{scope}[xshift=5cm]
    draw [very thin, lightgray,step=.1] (0,0) grid (4,4);
    end{scope}
    end{tikzpicture}
    end{document}





    share|improve this answer





















    • Thanks +1, very useful!
      – wonderich
      Dec 11 at 16:21















    up vote
    3
    down vote













    The step key is used to indicate this.



    steps



    documentclass{article}
    usepackage{tikz}
    begin{document}

    begin{tikzpicture}
    draw [very thin, lightgray] (0,0) grid (4,4);

    begin{scope}[xshift=5cm]
    draw [very thin, lightgray,step=.1] (0,0) grid (4,4);
    end{scope}
    end{tikzpicture}
    end{document}





    share|improve this answer





















    • Thanks +1, very useful!
      – wonderich
      Dec 11 at 16:21













    up vote
    3
    down vote










    up vote
    3
    down vote









    The step key is used to indicate this.



    steps



    documentclass{article}
    usepackage{tikz}
    begin{document}

    begin{tikzpicture}
    draw [very thin, lightgray] (0,0) grid (4,4);

    begin{scope}[xshift=5cm]
    draw [very thin, lightgray,step=.1] (0,0) grid (4,4);
    end{scope}
    end{tikzpicture}
    end{document}





    share|improve this answer












    The step key is used to indicate this.



    steps



    documentclass{article}
    usepackage{tikz}
    begin{document}

    begin{tikzpicture}
    draw [very thin, lightgray] (0,0) grid (4,4);

    begin{scope}[xshift=5cm]
    draw [very thin, lightgray,step=.1] (0,0) grid (4,4);
    end{scope}
    end{tikzpicture}
    end{document}






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 11 at 5:08









    AndréC

    6,98211340




    6,98211340












    • Thanks +1, very useful!
      – wonderich
      Dec 11 at 16:21


















    • Thanks +1, very useful!
      – wonderich
      Dec 11 at 16:21
















    Thanks +1, very useful!
    – wonderich
    Dec 11 at 16:21




    Thanks +1, very useful!
    – wonderich
    Dec 11 at 16:21










    up vote
    2
    down vote













    A PSTricks solution only for comparison purposes.



    documentclass[pstricks,border=12pt,12pt]{standalone}
    newpsstyle{gridstyle}
    {
    gridlabels=8pt,
    gridfont=Arial,
    %
    gridcolor=red,
    subgridcolor=gray,
    %
    subgriddiv=5,
    %
    gridwidth=.8pt,
    subgridwidth=.4pt,
    %
    griddots=10,
    subgriddots=5,
    }
    begin{document}
    begin{pspicture}[showgrid](5,5)

    end{pspicture}
    end{document}


    enter image description here






    share|improve this answer

























      up vote
      2
      down vote













      A PSTricks solution only for comparison purposes.



      documentclass[pstricks,border=12pt,12pt]{standalone}
      newpsstyle{gridstyle}
      {
      gridlabels=8pt,
      gridfont=Arial,
      %
      gridcolor=red,
      subgridcolor=gray,
      %
      subgriddiv=5,
      %
      gridwidth=.8pt,
      subgridwidth=.4pt,
      %
      griddots=10,
      subgriddots=5,
      }
      begin{document}
      begin{pspicture}[showgrid](5,5)

      end{pspicture}
      end{document}


      enter image description here






      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        A PSTricks solution only for comparison purposes.



        documentclass[pstricks,border=12pt,12pt]{standalone}
        newpsstyle{gridstyle}
        {
        gridlabels=8pt,
        gridfont=Arial,
        %
        gridcolor=red,
        subgridcolor=gray,
        %
        subgriddiv=5,
        %
        gridwidth=.8pt,
        subgridwidth=.4pt,
        %
        griddots=10,
        subgriddots=5,
        }
        begin{document}
        begin{pspicture}[showgrid](5,5)

        end{pspicture}
        end{document}


        enter image description here






        share|improve this answer












        A PSTricks solution only for comparison purposes.



        documentclass[pstricks,border=12pt,12pt]{standalone}
        newpsstyle{gridstyle}
        {
        gridlabels=8pt,
        gridfont=Arial,
        %
        gridcolor=red,
        subgridcolor=gray,
        %
        subgriddiv=5,
        %
        gridwidth=.8pt,
        subgridwidth=.4pt,
        %
        griddots=10,
        subgriddots=5,
        }
        begin{document}
        begin{pspicture}[showgrid](5,5)

        end{pspicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 11 at 19:46









        Artificial Stupidity

        5,08811039




        5,08811039






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464249%2fhow-to-draw-a-much-more-dense-grid-or-lattice%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            Origin of the phrase “under your belt”?