On 24 Aug 2022, at 6:36, Michael Hart wrote:
I worked out how to do it, I needed to convert the time string to a python
datetime using datetime.strptime then to a datetime.time and format the
range with the x values in it to "hh:mm" so the seconds aren't shown in the
times or the graph.
Works like a charm, code and spreadsheet attached.
Glad you got it working though, please, try and avoid using ws["A" + str(…)]" in your code. Use ws.cell() or ws.iter_rows() and your life will be easier! Indexing and slicing are really for convenience only in the shell.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Sengelsweg 34
Düsseldorf
D- 40489
Tel: +49-203-3925-0390
Mobile: +49-178-782-6226
Thank you Charlie, I will do that,
Michael
--
You received this message because you are subscribed to a topic in the Google Groups "openpyxl-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpyxl-users/OmqTtXOGvms/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpyxl-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpyxl-users/F7516073-1FB4-4D2F-ACE4-79ECC0803DEF%40clark-consulting.eu.