Holiday Challenge - Bauble Analytics

Roland Jones_21245
Roland Jones_21245
Altair Employee
edited November 15 in Altair RapidMiner

Can you produce an interesting visual of a Christmas Tree in the run up to Christmas? Perhaps start producing a static output, and then see if you can convert to a dynamic output. Hint: the Animated Plots extension might help you here. There’s no source data, you can generate any data you need within the tool. An example is shown below, but feel free to get creative and see what you can come up with! Post your solution in picture or .gif format in the comments section, and collaborate with other community members to build interesting results. Participants will also get an exclusive holiday badge!

If you need to get access to Altair RapidMiner AI Studio, you can sign up for a trial account here: https://rapidminer.com/

Comments

  • ClaudioKeck
    ClaudioKeck
    Altair Employee
    Hi @rjones13

    I love this challenge and really enjoyed working on it! :) Great idea!

     

    BTW: Image Handling Extension can be quite useful to generate the data;) 
    gif.ioo 423.5K
  • machbrown2
    machbrown2 New Altair Community Member
    Hello @ rjones13,
    Its really amazing and superb challenge with having lot of fun,
    I really appreciate your idea.

    Great! If you're interested in creating a dynamic Christmas tree visual in Python, you can use libraries like Matplotlib and Animated Plots extension. Here's a simple example code to get you started:


    <div>import matplotlib.pyplot as plt</div><div>from matplotlib.animation import FuncAnimation</div><div><br></div><div>def draw_christmas_tree(frame):</div><div>&nbsp; &nbsp; plt.clf()&nbsp; # Clear the previous frame</div><div><br></div><div>&nbsp; &nbsp; # Draw the tree trunk</div><div>&nbsp; &nbsp; plt.plot([0, 0], [0, 0.1], color='brown', linewidth=20)</div><div><br></div><div>&nbsp; &nbsp; # Draw the tree branches</div><div>&nbsp; &nbsp; for i in range(1, frame + 1):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plt.plot([0, -i / 10], [0.1 + i / 10, 0.1 + i / 10], color='green', linewidth=2)</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; plt.title(f'Frame {frame}')</div><div>&nbsp; &nbsp; plt.axis('off')&nbsp; # Turn off axis for a cleaner visual</div><div><br></div><div># Number of frames for animation</div><div>num_frames = 30</div><div><br></div><div># Create an animated plot</div><div>animation = FuncAnimation(plt.gcf(), draw_christmas_tree, frames=num_frames, interval=200, repeat=False)</div><div><br></div><div># Display the animation</div><div>plt.show()</div><div><br></div><br>&nbsp;<br>

This discussion has been closed.