I've tried looking around for some answers to this questions, but couldn't find anything, so any help would be appreciated. My LaTeX document has several figures and graphs in it, and their captions are the ordinary "Figure 1: ...". However, I would like to make the graphs have an independent counter that captions them as "Graph 1" rather than "Figure 1", while also having the regular images be captioned with "Figure".
I found some questions related to this (like so) but they either involve \renewcommand{\figurename}{Fig.} or the caption package, neither of which seem to accomplish the idea of two independent figure counters.
Edit: Solution
Someone might stumble upon this later by chance so I just wanted to put in the solution to this issue.
\documentclass{article}
\usepackage{float}
\newfloat{Graph}{tbp}{ext}
\begin{document}
...
\begin{Graph}[h!]
\centering
\includegraphics[width=0.65\textwidth]{graph1.PNG}
\caption{caption goes here.}
\end{Graph}
...
\end{document}
\newfloat{graph}– David Carlisle May 14 '21 at 17:00