Plot bar graph

  • SGamgee
  • Topic Author
More
21 Sep 2021 04:37 #10081 by SGamgee
Plot bar graph was created by SGamgee
Hello everybody,

is anybody knows how to make vertical bar graph with more different variable and make them to share the same space width.
Maybe, my request is little bit confused, I will give the example.

If I want to plot Monthly energy bar graph, the width of bar should be some x and bar should be centralised on Month grid.
But If I want to plot two bars on the same graphs (Monthly energy and Monthly load), the width of the bars should be half (x/2) and one should be moved left and other right from Month grid.
It should be also looks fine if I scaled the graph window by mouse.

Thanks in advance.
Sasa

Please Log in or Create an account to join the conversation.

  • pgilman
More
21 Sep 2021 09:09 #10085 by pgilman
Replied by pgilman on topic Plot bar graph
Hi Saša,

You can create a graph like the one you describe on the Graphs tab of the Results page:



SAM's graphing capabilities are limited, so if you want more control over graphs, you can export data to a spreadsheet program or other graphing program. You can export data from any graph in SAM by right-clicking the graph, or from the Data Tables tab.

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

  • SGamgee
  • Topic Author
More
21 Sep 2021 13:41 #10088 by SGamgee
Replied by SGamgee on topic Plot bar graph
Hi Paul,

thanks for the responsive reply.
Actually, I considered on example you mentioned but didn't write that I would like to do so by LK script.
So, the same type of graph you showed but by LK script (plot function).

Best regards,
Saša

Please Log in or Create an account to join the conversation.

  • pgilman
More
24 Sep 2021 19:34 #10099 by pgilman
Replied by pgilman on topic Plot bar graph
Hi Saša,

Please follow the link to the LK sample files provided on the LK Script page:

sam.nrel.gov/lk-script.html

Best regards,
Paul.

Please Log in or Create an account to join the conversation.

Moderators: pgilman
Powered by Kunena Forum