begin{figure} makes the figure disappear












0















I have to make a bar chart in my latex document using begin{tikzpicture}. I need to add a caption and label for this figure. Thus, I need to add begin{figure}. However, it makes the figure disappear from the document. When I remove the begin{figure} and end{figure}, the figure appears but I can't add the caption. Any help would be appreciated. Thank you.



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}
centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

balance
end{document}









share|improve this question




















  • 2





    @Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

    – subham soni
    Mar 29 at 5:08






  • 4





    Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

    – marmot
    Mar 29 at 5:09






  • 1





    The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

    – moewe
    Mar 29 at 5:11








  • 2





    with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

    – Zarko
    Mar 29 at 5:27






  • 2





    I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

    – moewe
    Mar 29 at 5:31


















0















I have to make a bar chart in my latex document using begin{tikzpicture}. I need to add a caption and label for this figure. Thus, I need to add begin{figure}. However, it makes the figure disappear from the document. When I remove the begin{figure} and end{figure}, the figure appears but I can't add the caption. Any help would be appreciated. Thank you.



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}
centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

balance
end{document}









share|improve this question




















  • 2





    @Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

    – subham soni
    Mar 29 at 5:08






  • 4





    Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

    – marmot
    Mar 29 at 5:09






  • 1





    The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

    – moewe
    Mar 29 at 5:11








  • 2





    with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

    – Zarko
    Mar 29 at 5:27






  • 2





    I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

    – moewe
    Mar 29 at 5:31
















0












0








0








I have to make a bar chart in my latex document using begin{tikzpicture}. I need to add a caption and label for this figure. Thus, I need to add begin{figure}. However, it makes the figure disappear from the document. When I remove the begin{figure} and end{figure}, the figure appears but I can't add the caption. Any help would be appreciated. Thank you.



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}
centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

balance
end{document}









share|improve this question
















I have to make a bar chart in my latex document using begin{tikzpicture}. I need to add a caption and label for this figure. Thus, I need to add begin{figure}. However, it makes the figure disappear from the document. When I remove the begin{figure} and end{figure}, the figure appears but I can't add the caption. Any help would be appreciated. Thank you.



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}
centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

balance
end{document}






tikz-pgf pgfplots






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 29 at 6:08







Yusufsn

















asked Mar 29 at 5:04









YusufsnYusufsn

1033




1033








  • 2





    @Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

    – subham soni
    Mar 29 at 5:08






  • 4





    Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

    – marmot
    Mar 29 at 5:09






  • 1





    The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

    – moewe
    Mar 29 at 5:11








  • 2





    with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

    – Zarko
    Mar 29 at 5:27






  • 2





    I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

    – moewe
    Mar 29 at 5:31
















  • 2





    @Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

    – subham soni
    Mar 29 at 5:08






  • 4





    Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

    – marmot
    Mar 29 at 5:09






  • 1





    The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

    – moewe
    Mar 29 at 5:11








  • 2





    with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

    – Zarko
    Mar 29 at 5:27






  • 2





    I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

    – moewe
    Mar 29 at 5:31










2




2





@Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

– subham soni
Mar 29 at 5:08





@Yusufn probably issue with your LaTeX engine. I am able to see the caption properly with your code.

– subham soni
Mar 29 at 5:08




4




4





Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

– marmot
Mar 29 at 5:09





Welcome to TeX-SE! Are you sure the figure has disappeared and not just floated to another position?

– marmot
Mar 29 at 5:09




1




1





The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

– moewe
Mar 29 at 5:11







The MWE works fine for me as posted. Does it reproduce the issue for you or does the problem only become apparent in the context of a larger document? In the former case, please add an image of the output and upload your .log file. In the latter case, please try to edit your code example so that it reproduces the issue. Indeed this could just be an issue of the float floating to a different position, but there are rare situations where floats get lost: LaTeX will throw an error in that case to make you aware of the issue.

– moewe
Mar 29 at 5:11






2




2





with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

– Zarko
Mar 29 at 5:27





with your document example is not possible to reproduce your problem. that images/tables will stay nearby where they are inserted, add option [htb] to figure` and table: begin{figure}[htb].

– Zarko
Mar 29 at 5:27




2




2





I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

– moewe
Mar 29 at 5:31







I don't think I would be a great help. You have a much better chance of getting help by investing some time into creating a so-called MWE (tex.meta.stackexchange.com/q/228/35864) that reproduces the issue and post it here.

– moewe
Mar 29 at 5:31












1 Answer
1






active

oldest

votes


















2














Remove balance.



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}[h]

centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

%balance
end{document}


or add some text between balance and figure:



documentclass[conference]{IEEEtran}
IEEEoverridecommandlockouts
usepackage{cite}
usepackage{url}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{balance}
usepackage{booktabs}
usepackage{pgfplots}
usepackage{subfig}
usepackage{tabularx}
usepackage{tikz}
usepackage{caption}

begin{document}

begin{figure}[h]

centering
begin{tikzpicture}
begin{axis}[
title={},
xlabel={Threshold},
xtick={3,4,5,6,7,8,9,10},
xmin=2, xmax=11,
ymin=10, ymax=110,
ymajorgrids=true,
legend style={at={(0.97,0.03)},anchor=south east}
]
addplot[-, color=blue, smooth]
coordinates{
(3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
};
addlegendentry{Precision}
addplot[-, color=green, smooth]
coordinates{
(3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
};
addlegendentry{Recall}
addplot[dashed, color=red, smooth]
coordinates{
(3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
};
addlegendentry{$F_1$}
end{axis}
end{tikzpicture}
caption{Accuracy performance with threshold}
label{fig:threshold}
end{figure}

This is some text

balance
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',
    autoActivateHeartbeat: false,
    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%2f482048%2fbeginfigure-makes-the-figure-disappear%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Remove balance.



    documentclass[conference]{IEEEtran}
    IEEEoverridecommandlockouts
    usepackage{cite}
    usepackage{url}
    usepackage{amsmath,amssymb,amsfonts}
    usepackage{algorithmic}
    usepackage{graphicx}
    usepackage{textcomp}
    usepackage{xcolor}
    usepackage{balance}
    usepackage{booktabs}
    usepackage{pgfplots}
    usepackage{subfig}
    usepackage{tabularx}
    usepackage{tikz}
    usepackage{caption}

    begin{document}

    begin{figure}[h]

    centering
    begin{tikzpicture}
    begin{axis}[
    title={},
    xlabel={Threshold},
    xtick={3,4,5,6,7,8,9,10},
    xmin=2, xmax=11,
    ymin=10, ymax=110,
    ymajorgrids=true,
    legend style={at={(0.97,0.03)},anchor=south east}
    ]
    addplot[-, color=blue, smooth]
    coordinates{
    (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
    };
    addlegendentry{Precision}
    addplot[-, color=green, smooth]
    coordinates{
    (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
    };
    addlegendentry{Recall}
    addplot[dashed, color=red, smooth]
    coordinates{
    (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
    };
    addlegendentry{$F_1$}
    end{axis}
    end{tikzpicture}
    caption{Accuracy performance with threshold}
    label{fig:threshold}
    end{figure}

    %balance
    end{document}


    or add some text between balance and figure:



    documentclass[conference]{IEEEtran}
    IEEEoverridecommandlockouts
    usepackage{cite}
    usepackage{url}
    usepackage{amsmath,amssymb,amsfonts}
    usepackage{algorithmic}
    usepackage{graphicx}
    usepackage{textcomp}
    usepackage{xcolor}
    usepackage{balance}
    usepackage{booktabs}
    usepackage{pgfplots}
    usepackage{subfig}
    usepackage{tabularx}
    usepackage{tikz}
    usepackage{caption}

    begin{document}

    begin{figure}[h]

    centering
    begin{tikzpicture}
    begin{axis}[
    title={},
    xlabel={Threshold},
    xtick={3,4,5,6,7,8,9,10},
    xmin=2, xmax=11,
    ymin=10, ymax=110,
    ymajorgrids=true,
    legend style={at={(0.97,0.03)},anchor=south east}
    ]
    addplot[-, color=blue, smooth]
    coordinates{
    (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
    };
    addlegendentry{Precision}
    addplot[-, color=green, smooth]
    coordinates{
    (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
    };
    addlegendentry{Recall}
    addplot[dashed, color=red, smooth]
    coordinates{
    (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
    };
    addlegendentry{$F_1$}
    end{axis}
    end{tikzpicture}
    caption{Accuracy performance with threshold}
    label{fig:threshold}
    end{figure}

    This is some text

    balance
    end{document}


    enter image description here






    share|improve this answer




























      2














      Remove balance.



      documentclass[conference]{IEEEtran}
      IEEEoverridecommandlockouts
      usepackage{cite}
      usepackage{url}
      usepackage{amsmath,amssymb,amsfonts}
      usepackage{algorithmic}
      usepackage{graphicx}
      usepackage{textcomp}
      usepackage{xcolor}
      usepackage{balance}
      usepackage{booktabs}
      usepackage{pgfplots}
      usepackage{subfig}
      usepackage{tabularx}
      usepackage{tikz}
      usepackage{caption}

      begin{document}

      begin{figure}[h]

      centering
      begin{tikzpicture}
      begin{axis}[
      title={},
      xlabel={Threshold},
      xtick={3,4,5,6,7,8,9,10},
      xmin=2, xmax=11,
      ymin=10, ymax=110,
      ymajorgrids=true,
      legend style={at={(0.97,0.03)},anchor=south east}
      ]
      addplot[-, color=blue, smooth]
      coordinates{
      (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
      };
      addlegendentry{Precision}
      addplot[-, color=green, smooth]
      coordinates{
      (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
      };
      addlegendentry{Recall}
      addplot[dashed, color=red, smooth]
      coordinates{
      (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
      };
      addlegendentry{$F_1$}
      end{axis}
      end{tikzpicture}
      caption{Accuracy performance with threshold}
      label{fig:threshold}
      end{figure}

      %balance
      end{document}


      or add some text between balance and figure:



      documentclass[conference]{IEEEtran}
      IEEEoverridecommandlockouts
      usepackage{cite}
      usepackage{url}
      usepackage{amsmath,amssymb,amsfonts}
      usepackage{algorithmic}
      usepackage{graphicx}
      usepackage{textcomp}
      usepackage{xcolor}
      usepackage{balance}
      usepackage{booktabs}
      usepackage{pgfplots}
      usepackage{subfig}
      usepackage{tabularx}
      usepackage{tikz}
      usepackage{caption}

      begin{document}

      begin{figure}[h]

      centering
      begin{tikzpicture}
      begin{axis}[
      title={},
      xlabel={Threshold},
      xtick={3,4,5,6,7,8,9,10},
      xmin=2, xmax=11,
      ymin=10, ymax=110,
      ymajorgrids=true,
      legend style={at={(0.97,0.03)},anchor=south east}
      ]
      addplot[-, color=blue, smooth]
      coordinates{
      (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
      };
      addlegendentry{Precision}
      addplot[-, color=green, smooth]
      coordinates{
      (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
      };
      addlegendentry{Recall}
      addplot[dashed, color=red, smooth]
      coordinates{
      (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
      };
      addlegendentry{$F_1$}
      end{axis}
      end{tikzpicture}
      caption{Accuracy performance with threshold}
      label{fig:threshold}
      end{figure}

      This is some text

      balance
      end{document}


      enter image description here






      share|improve this answer


























        2












        2








        2







        Remove balance.



        documentclass[conference]{IEEEtran}
        IEEEoverridecommandlockouts
        usepackage{cite}
        usepackage{url}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}
        usepackage{xcolor}
        usepackage{balance}
        usepackage{booktabs}
        usepackage{pgfplots}
        usepackage{subfig}
        usepackage{tabularx}
        usepackage{tikz}
        usepackage{caption}

        begin{document}

        begin{figure}[h]

        centering
        begin{tikzpicture}
        begin{axis}[
        title={},
        xlabel={Threshold},
        xtick={3,4,5,6,7,8,9,10},
        xmin=2, xmax=11,
        ymin=10, ymax=110,
        ymajorgrids=true,
        legend style={at={(0.97,0.03)},anchor=south east}
        ]
        addplot[-, color=blue, smooth]
        coordinates{
        (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
        };
        addlegendentry{Precision}
        addplot[-, color=green, smooth]
        coordinates{
        (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
        };
        addlegendentry{Recall}
        addplot[dashed, color=red, smooth]
        coordinates{
        (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
        };
        addlegendentry{$F_1$}
        end{axis}
        end{tikzpicture}
        caption{Accuracy performance with threshold}
        label{fig:threshold}
        end{figure}

        %balance
        end{document}


        or add some text between balance and figure:



        documentclass[conference]{IEEEtran}
        IEEEoverridecommandlockouts
        usepackage{cite}
        usepackage{url}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}
        usepackage{xcolor}
        usepackage{balance}
        usepackage{booktabs}
        usepackage{pgfplots}
        usepackage{subfig}
        usepackage{tabularx}
        usepackage{tikz}
        usepackage{caption}

        begin{document}

        begin{figure}[h]

        centering
        begin{tikzpicture}
        begin{axis}[
        title={},
        xlabel={Threshold},
        xtick={3,4,5,6,7,8,9,10},
        xmin=2, xmax=11,
        ymin=10, ymax=110,
        ymajorgrids=true,
        legend style={at={(0.97,0.03)},anchor=south east}
        ]
        addplot[-, color=blue, smooth]
        coordinates{
        (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
        };
        addlegendentry{Precision}
        addplot[-, color=green, smooth]
        coordinates{
        (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
        };
        addlegendentry{Recall}
        addplot[dashed, color=red, smooth]
        coordinates{
        (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
        };
        addlegendentry{$F_1$}
        end{axis}
        end{tikzpicture}
        caption{Accuracy performance with threshold}
        label{fig:threshold}
        end{figure}

        This is some text

        balance
        end{document}


        enter image description here






        share|improve this answer













        Remove balance.



        documentclass[conference]{IEEEtran}
        IEEEoverridecommandlockouts
        usepackage{cite}
        usepackage{url}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}
        usepackage{xcolor}
        usepackage{balance}
        usepackage{booktabs}
        usepackage{pgfplots}
        usepackage{subfig}
        usepackage{tabularx}
        usepackage{tikz}
        usepackage{caption}

        begin{document}

        begin{figure}[h]

        centering
        begin{tikzpicture}
        begin{axis}[
        title={},
        xlabel={Threshold},
        xtick={3,4,5,6,7,8,9,10},
        xmin=2, xmax=11,
        ymin=10, ymax=110,
        ymajorgrids=true,
        legend style={at={(0.97,0.03)},anchor=south east}
        ]
        addplot[-, color=blue, smooth]
        coordinates{
        (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
        };
        addlegendentry{Precision}
        addplot[-, color=green, smooth]
        coordinates{
        (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
        };
        addlegendentry{Recall}
        addplot[dashed, color=red, smooth]
        coordinates{
        (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
        };
        addlegendentry{$F_1$}
        end{axis}
        end{tikzpicture}
        caption{Accuracy performance with threshold}
        label{fig:threshold}
        end{figure}

        %balance
        end{document}


        or add some text between balance and figure:



        documentclass[conference]{IEEEtran}
        IEEEoverridecommandlockouts
        usepackage{cite}
        usepackage{url}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}
        usepackage{xcolor}
        usepackage{balance}
        usepackage{booktabs}
        usepackage{pgfplots}
        usepackage{subfig}
        usepackage{tabularx}
        usepackage{tikz}
        usepackage{caption}

        begin{document}

        begin{figure}[h]

        centering
        begin{tikzpicture}
        begin{axis}[
        title={},
        xlabel={Threshold},
        xtick={3,4,5,6,7,8,9,10},
        xmin=2, xmax=11,
        ymin=10, ymax=110,
        ymajorgrids=true,
        legend style={at={(0.97,0.03)},anchor=south east}
        ]
        addplot[-, color=blue, smooth]
        coordinates{
        (3,100)(4,84.52)(5,84.76)(6,82.91)(7,83.24)(8,83.19)(9,82.64)(10,81.99)
        };
        addlegendentry{Precision}
        addplot[-, color=green, smooth]
        coordinates{
        (3,11.48)(4,69.84)(5,74.75)(6,85.90)(7,94.43)(8,97.38)(9,98.36)(10,100)
        };
        addlegendentry{Recall}
        addplot[dashed, color=red, smooth]
        coordinates{
        (3,20.59)(4,76.48)(5,79.44)(6,84.38)(7,88.48)(8,89.73)(9,89.82)(10,90.1)
        };
        addlegendentry{$F_1$}
        end{axis}
        end{tikzpicture}
        caption{Accuracy performance with threshold}
        label{fig:threshold}
        end{figure}

        This is some text

        balance
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 29 at 7:22









        JouleVJouleV

        11.5k22561




        11.5k22561






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482048%2fbeginfigure-makes-the-figure-disappear%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

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?