Plot bar graph

  • Saša Mihailović
  • Topic Author
More
21 Sep 2021 10:37 #10081 by Saša Mihailović
Plot bar graph was created by Saša Mihailović
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.

  • Paul Gilman
More
21 Sep 2021 15:09 #10085 by Paul Gilman
Replied by Paul Gilman 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.

  • Saša Mihailović
  • Topic Author
More
21 Sep 2021 19:41 #10088 by Saša Mihailović
Replied by Saša Mihailović 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.

  • Paul Gilman
More
25 Sep 2021 01:34 #10099 by Paul Gilman
Replied by Paul Gilman 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: Paul Gilman
Powered by Kunena Forum