Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Comments on How to add vertical line in the middle of two marks on image

Post

How to add vertical line in the middle of two marks on image

+1
−0

Have

This .png image of a plot: Busy Bar Graph

Want

To add vertcal lines between the groupings:
(0, 1, 2) LINE (3, 4, 5) LINE (6, 7, 8)

I want to place the lines exactly in the middle of the grouping boundaries.

The solution I envision is marking (*) the vertical edges of the bars of each grouping boundary, and then placing a line exactly between those two marks:
(0, 1, 2)* LINE *(3, 4, 5)...

Notes

I am using Linux, and have access to Gimp. That being said, I am open to better suited software other than Gimp, as long as it's available for Linux.

Inspired by this post.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

How was that image generated, and what is the desired final outcome? (4 comments)
How was that image generated, and what is the desired final outcome?
Canina‭ wrote over 2 years ago

Given only an image, I think about the best we can suggest is to use an image editor (either GUI or command-line-driven) to make the change; that's clearly suboptimal, because it's going to be extremely specific to this one instance. But if you include how the image was generated, and ideally also include an image showing the result you're after, then we might be able to suggest a more general approach.

mcp‭ wrote over 2 years ago · edited over 2 years ago

Yes, I am looking for a GUI solution and mentioned Gimp in the post. I linked to the original inspiring post that shows exactly how this image was created, but it doesn't seem like pandas supports this sort of thing easily.

What I'm missing is how I would create "marks" and put a line exactly in between them in something like Gimp.

I haven't come up with a solution and so there is no final product image. I explained it as best I could and it seems it worked for samcarter‭ as he got exactly what I meant.

samcarter‭ wrote over 2 years ago

mcp‭ Unrelated to the question, but if you have control over the source, consider using another format than png. If you can export to pdf, svg or similar, you will have much better quality for this type of graphic than if you use a pixelated format like png